public void SendsGeneratedArticle()
        {
            articleEntity     = new ArticleEntity();
            generatedTemplate = new GeneratedArticle();
            GeneratedArticle anotherArticle = new GeneratedArticle();

            articleGatewayMock.Setup(gateway => gateway.GetArticle()).Returns(articleEntity);
            templateGeneratorMock.Setup(generator =>
                                        generator.GenerateArticle(It.IsAny <ArticleEntity>())).Returns(generatedTemplate);
            outputBoundaryMock.Setup(boundary => boundary.Output(It.IsAny <GeneratedArticle>()));

            interactor.Generate();
            outputBoundaryMock.Verify(mock => mock.Output(generatedTemplate), Times.Once());
        }
 public void Output(GeneratedArticle path)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public void Generate()
 {
     ArticleEntity article = ArticleGateway.GetArticle();
     GeneratedArticle generatedDoc = TemplateGenerator.GenerateArticle(article);
     OutputBoundary.Output(generatedDoc);
 }