public EnrichWithWorkflowsTests() { requestContext = new Context(Mocks.ApiUser(), Mocks.App(appId)); schema = Mocks.Schema(appId, schemaId); schemaProvider = x => Task.FromResult(schema); A.CallTo(() => contentQuery.GetSchemaOrThrowAsync(A <Context> .Ignored, schemaId.Id.ToString())) .Returns(schema); sut = new EnrichWithWorkflows(contentWorkflow); }
public EnrichWithWorkflowsTests() { requestContext = new Context(Mocks.FrontendUser(), Mocks.App(appId)); sut = new EnrichWithWorkflows(workflow); }