Esempio n. 1
0
        public void TestIfAddingBakersWork()
        {
            Bakery   bakery = new Bakery();
            DateTime test   = DateTime.Now;

            bakery.HireBaker(test);
            Assert.AreEqual(1, bakery.listOfBakers.Count);
        }
Esempio n. 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));
        }