private static EntryContent BuildTestSetup(ArticleEntry articleEntry, out string base64, out Mock <IBlobStore> mock,
                                                   out UploadArticleEntryCoordinator coordinator)
        {
            base64 = string.IsNullOrWhiteSpace(articleEntry.Content)? "foo" : StringUtilities.ToBase64(articleEntry.Content);
            var entryContent     = new EntryContentFixture().Build();
            var blobStoreFixture = new BlobStoreFixture();

            mock = blobStoreFixture.Mock;
            var uploadFixture = new UploadArticleEntryCoordinatorFixture
            {
                BlobStore = blobStoreFixture.Build()
            };

            coordinator = uploadFixture.Build();
            return(entryContent);
        }
Exemple #2
0
 public CreateAndPersistArticleEntryStrategyFixture()
 {
     CreateEntryCoordinator = new CreateArticleEntryCoordinatorFixture().Build();
     UploadCoordinator      = new UploadArticleEntryCoordinatorFixture().Build();
 }