Пример #1
0
        public void SubmitPtoRequestTest()
        {
            PaidTimeOff pto = new PaidTimeOff()
            {
                EmpID          = 6,
                Date           = new DateTime(2015, 07, 15),
                HoursRequested = 4
            };
            PaidTimeOffRepository repo = new PaidTimeOffRepository();

            repo.SubmitPtoRequest(pto);
            var ptoList = repo.ViewAllPtoRequests();

            Assert.AreEqual(7, ptoList.Count);
        }
        public void SubmitPtoRequest(PaidTimeOff pto)
        {
            PaidTimeOffRepository repo = new PaidTimeOffRepository();

            repo.SubmitPtoRequest(pto);
        }