public DefaultWorkflowsValidatorTests() { var schema = Mocks.Schema(appId, schemaId, new Schema(schemaId.Name)); A.CallTo(() => appProvider.GetSchemaAsync(appId.Id, A <DomainId> ._, false)) .Returns(Task.FromResult <ISchemaEntity?>(null)); A.CallTo(() => appProvider.GetSchemaAsync(appId.Id, schemaId.Id, false)) .Returns(schema); sut = new DefaultWorkflowsValidator(appProvider); }
public DefaultWorkflowsValidatorTests() { var schema = A.Fake <ISchemaEntity>(); A.CallTo(() => schema.Id).Returns(schemaId.Id); A.CallTo(() => schema.SchemaDef).Returns(new Schema(schemaId.Name)); A.CallTo(() => appProvider.GetSchemaAsync(appId.Id, A <Guid> .Ignored, false)) .Returns(Task.FromResult <ISchemaEntity>(null)); A.CallTo(() => appProvider.GetSchemaAsync(appId.Id, schemaId.Id, false)) .Returns(schema); sut = new DefaultWorkflowsValidator(appProvider); }