public void IsPreviewsClientWorking() { var api = new Apis.Previews.PreviewsApi(ApiKey, ApiPassword); var applications = api.GetEmailTestingApplications(); Assert.That(applications, Is.Not.Null); Assert.That(applications.Count, Is.GreaterThan(0)); }
public void IsGetTestWorking(int testId = 0) { if (testId <= 0) { throw new ArgumentException("You need to supply a email test id that you have access to for this test to work."); } var api = new Apis.Previews.PreviewsApi(ApiKey, ApiPassword); var test = api.GetEmailTest(testId); Assert.NotNull(test); Assert.AreEqual(testId, test.Id); }
public void IsGetResultWorking(long resultId = 0) { if (resultId <= 0) { throw new ArgumentException("You need to supply a result id that you have access to for this test to work."); } var api = new Apis.Previews.PreviewsApi(ApiKey, ApiPassword); var result = api.GetTestResult(resultId); Assert.NotNull(result); Assert.AreEqual(resultId, result.Id); }