예제 #1
0
        public void FindCustomerByTime()
        {
            haircutter1.Times.Add(new DateTime(2016, 12, 12, 18, 00, 00));
            customer1.Times.Add(new DateTime(2016, 12, 12, 17, 00, 00));
            customer2.Times.Add(new DateTime(2016, 12, 12, 20, 00, 00));
            customer2.Times.Add(new DateTime(2016, 12, 12, 18, 00, 00));
            DateTime nextTime = haircutter1.NextTime();

            Assert.AreEqual(userFunctions.FindCustomerByTime(nextTime, "Louise"), customer2);
        }