public void TestCardApplicationSettingDob() { DateTime testingDob = new DateTime(1976, 5, 8); CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob); Assert.AreEqual(sut.DateOfBirth, testingDob); }
public void TestCardApplicationSettingIncome() { decimal incomeToSet = 10000; CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithAnnualIncome(incomeToSet); Assert.AreEqual(sut.AnnualIncomeGbp, incomeToSet); }
public void TestCardApplicationInCompleteWithFutureDob() { DateTime testingDob = DateTime.Now.AddYears(1); CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob).PrepareCardApplicationWithAnnualIncome(30); Assert.IsFalse(sut.IsApplicationComplete()); }
public void TestCardApplicationComplete() { DateTime testingDob = new DateTime(1976, 5, 8); CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob).PrepareCardApplicationWithAnnualIncome(30); Assert.IsTrue(sut.IsApplicationComplete()); }