Exemplo n.º 1
0
        public void GetSchedulesByDepartmentIdAndDateTest()
        {
            ScheduleServiceClient client = new ScheduleServiceClient();

            Schedule schedule = client.GetScheduleByDepartmentIdAndDate(1, new DateTime(2017, 11, 15));

            Assert.IsNotNull(schedule);
            Assert.AreEqual(new DateTime(2017, 11, 01), schedule.StartDate);
            Assert.AreNotEqual(0, schedule.Shifts.Count);
            Assert.AreEqual("Kolonial", schedule.Department.Name);
        }
Exemplo n.º 2
0
 public Schedule GetScheduleByDepartmentIdAndDate(int departmentId, DateTime date)
 {
     return(_scheduleServiceClient.GetScheduleByDepartmentIdAndDate(departmentId, date));
 }