protected override void Setup() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid(); _domainName = "dotnet-lib-test.com"; _returnPath = $"return-path.{_domainName}"; }
protected override async Task SetupAsync() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid(); _senderprefix = "test-sender-"; _senderEmail = String.Format(_senderprefix + "{0:n}@example.com", id); _replyToAddress = String.Format(_senderprefix + "replyto-{0:n}@example.com", id); _senderName = String.Format("Test Sender {0}", TESTING_DATE); await CompletionSource; }
protected override void Setup() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid(); _senderprefix = "test-sender-"; _returnPath = "test." + WRITE_TEST_SENDER_SIGNATURE_PROTOTYPE.Split('@')[1]; _senderEmail = WRITE_TEST_SENDER_SIGNATURE_PROTOTYPE.Replace("[TOKEN]", String.Format(_senderprefix + "{0:n}", id)); _replyToAddress = WRITE_TEST_SENDER_SIGNATURE_PROTOTYPE.Replace("[TOKEN]", String.Format(_senderprefix + "replyto-{0:n}", id)); _senderName = String.Format("Test Sender {0}", TESTING_DATE); }
protected override async Task SetupAsync() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid(); var baseEmail = _senderprefix = "test-sender-"; _senderEmail = WRITE_TEST_SENDER_SIGNATURE_PROTOTYPE.Replace("[token]", String.Format(_senderprefix + "{0:n}", id)); _replyToAddress = WRITE_TEST_SENDER_SIGNATURE_PROTOTYPE.Replace("[token]", String.Format(_senderprefix + "replyto-{0:n}@example.com", id)); _senderName = String.Format("Test Sender {0}", TESTING_DATE); await CompletionSource; }
protected override async Task SetupAsync() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid().ToString("n"); _serverPrefix = "integration-test-server-"; _name = _serverPrefix + id; _color = ServerColors.Purple; _rawEmailEnabled = true; _smtpActivated = true; _inboundHookUrl = "http://www.example.com/inbound/" + id; _bounceHookUrl = "http://www.example.com/bounce/" + id; _openHookUrl = "http://www.example.com/opened/" + id; _postFirstOpenOpenOnly = true; _trackOpens = true; _inboundSpamThreshold = 30; await CompletionSource; }
protected override void Setup() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN); var id = Guid.NewGuid().ToString("n"); _serverPrefix = "admin-client-integration-test-server-"; _name = _serverPrefix + id; _color = ServerColors.Purple; _rawEmailEnabled = true; _smtpActivated = true; _inboundHookUrl = "http://www.example.com/inbound/" + id; _bounceHookUrl = "http://www.example.com/bounce/" + id; _openHookUrl = "http://www.example.com/opened/" + id; _clickHookUrl = "http://www.example.com/clicked/" + id; _deliveryHookUrl = "http://www.example.com/delivery/" + id; _postFirstOpenOpenOnly = true; _trackOpens = true; _inboundSpamThreshold = 30; _enableSmtpApiErrorHooks = true; }
protected override void Setup() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN, BASE_URL); _server = TestUtils.MakeSynchronous(() => _adminClient.CreateServerAsync($"integration-test-message-stream-{Guid.NewGuid()}")); _client = new PostmarkClient(_server.ApiTokens.First(), BASE_URL); }
protected override void Setup() { _adminClient = new PostmarkAdminClient(WRITE_ACCOUNT_TOKEN, BASE_URL); _server = _adminClient.CreateServerAsync($"integration-test-webhooks-{Guid.NewGuid()}").Result; _client = new PostmarkClient(_server.ApiTokens.First(), BASE_URL); }