예제 #1
0
        public void TestIfUpgradingBakersWork()
        {
            Bakery   bakery = new Bakery();
            DateTime test   = DateTime.Now;

            bakery.HireApprentice(test);
            test = test.AddDays(7);
            bakery.UpgradeApprentice(test);
            Assert.AreEqual("Baker", bakery.listOfBakers[0].WorkTitle);
        }
예제 #2
0
        public void TestIfPayingBakersWork()
        {
            Payment  payments = new Payment();
            Bakery   bakery   = new Bakery();
            DateTime test     = DateTime.Now;

            bakery.HireBaker(test);
            bakery.HireApprentice(test);
            Assert.AreEqual(3700, payments.PayBakers(5000, bakery.listOfBakers));
        }