Пример #1
0
        public void TestCardApplicationSettingDob()
        {
            DateTime testingDob = new DateTime(1976, 5, 8);

            CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob);

            Assert.AreEqual(sut.DateOfBirth, testingDob);
        }
Пример #2
0
        public void TestCardApplicationSettingIncome()
        {
            decimal incomeToSet = 10000;

            CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithAnnualIncome(incomeToSet);

            Assert.AreEqual(sut.AnnualIncomeGbp, incomeToSet);
        }
Пример #3
0
        public void TestCardApplicationInCompleteWithFutureDob()
        {
            DateTime testingDob = DateTime.Now.AddYears(1);

            CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob).PrepareCardApplicationWithAnnualIncome(30);


            Assert.IsFalse(sut.IsApplicationComplete());
        }
Пример #4
0
        public void TestCardApplicationComplete()
        {
            DateTime testingDob = new DateTime(1976, 5, 8);

            CardApplication sut = CardApplicationTestExtensionMethods.SetupWithDefaultValues().PrepareCardApplicationWithDob(testingDob).PrepareCardApplicationWithAnnualIncome(30);


            Assert.IsTrue(sut.IsApplicationComplete());
        }