public void FetchDirectDebitShouldBeSuccessful() { var response1 = DirectDebit.Create("012-084", "123123123", "Max Smith", 123.00m, Guid.NewGuid().ToString(), "DotNet DE", DateTime.Today); var response2 = DirectDebit.Find(response1.Result.ID); Assert.IsNotNull(response2); Assert.AreEqual(response1.Result.AccountName, response2.AccountName); }
public void NewDirectDebitShouldBeSuccessful() { var response = DirectDebit.Create("012-084", "123123123", "Max Smith", 123.00m, Guid.NewGuid().ToString(), "DotNet DE", DateTime.Today); Assert.IsTrue(response.Successful); Assert.IsTrue(response.Result.Successful); Assert.IsNotNull(((DirectDebit)response.Result).ID); Assert.AreEqual(((DirectDebit)response.Result).BSB, "012-084"); Assert.IsTrue(((DirectDebit)response.Result).ID.Contains("-DD-")); }
public void DeleteDirectDebitShouldBeSuccessful() { var response1 = DirectDebit.Create("012-084", "123123123", "Max Smith", 123.00m, Guid.NewGuid().ToString(), "DotNet DE", DateTime.Today); Assert.IsTrue(response1.Result.Delete()); }