示例#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());
        }