Exemplo n.º 1
0
 public void ViewAllptoRequestsTest()
 {
     List<PaidTimeOff> ptoList = new List<PaidTimeOff>();
     PaidTimeOffRepository repo = new PaidTimeOffRepository();
     ptoList = repo.ViewAllPtoRequests();
     Assert.AreEqual(6, ptoList.Count);
 }
Exemplo n.º 2
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);
 }