public async Task CreateNoticeDocumentCreatesSimpleDocument() { IDocumentService cut = new NoticeDocumentService(null, new FileSystem(), _noticeStorageService, GetDocumentOptions()); var actual = await cut.CreateNoticeDocument( _principalInformation, Mandate.TestNotifications); Assert.True(actual.WasSuccessful); }
public NoticeAsAttachmentNoticeProviderTests() { var noticeStorageOptions = Options.Create <NoticeStorageOptions>( new NoticeStorageOptions { ConnectionString = "UseDevelopmentStorage=true", ApplicationName = "notice" }); _noticeStorageService = new NoticeStorageService(noticeStorageOptions, null); _documentService = new NoticeDocumentService(null, new FileSystem(), _noticeStorageService, GetDocumentOptions()); _emailService = new NoticeEmail(GetEmailOptions(), null, _noticeStorageService, new FileSystem()); }
// Connect to the Azure Cosmos DB Emulator running locally // DocumentClient client = new DocumentClient( // new Uri("https://localhost:8081"), // "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="); public DCNoticeProviderTests() { // EndpointUrl; // _authorizationKey = options.Value.AuthorizationKey; // _databaseId = options.Value.DatabaseId; // _collectionId = options.Value.CollectionId; var noticeStorageOptions = Options.Create <NoticeStorageOptions> ( new NoticeStorageOptions { ConnectionString = "UseDevelopmentStorage=true", ApplicationName = "notice", EndpointUrl = "https://localhost:8081", AuthorizationKey = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", DatabaseId = "Notices", CollectionId = "NoticeRecords" }); _noticeStorageService = new NoticeStorageService(noticeStorageOptions, null); _documentService = new NoticeDocumentService(null, new FileSystem(), _noticeStorageService, GetDocumentOptions()); _emailService = new NoticeEmail(GetEmailOptions(), null, _noticeStorageService, new FileSystem()); }