public void AddCreditsTest() { RentItClient target = new RentItClient(); AccountCredentials credentials = new AccountCredentials { UserName = "******", HashedPassword = "******" }; int oldCredits = target.GetAllCustomerData(credentials).Credits; uint addAmount = 100; bool expected = true; bool actual = target.AddCredits(credentials, addAmount); Assert.AreEqual(expected, actual); int newCredits = target.GetAllCustomerData(credentials).Credits; Assert.AreEqual(oldCredits + addAmount, newCredits); }