public void EquipmentAccessor_GetEquipmentSchedule_Empty() { accessor = GetAccessor(); var res = accessor.GetEquipmentSchedule(99).Result; Assert.IsNotNull(res); Assert.AreEqual(0, res.Count()); }
public void EquipmentAccessor_GetEquipmentSchedule() { accessor = GetAccessor(); var res = accessor.GetEquipmentSchedule(1).Result; Assert.IsNotNull(res); Assert.AreEqual(2, res.Count()); Assert.AreEqual(typeof(List <EquipmentSchedule>), res.GetType()); Assert.AreEqual(new DateTime(2016, 11, 11), res.First().StartDate); }
public async Task <IEnumerable <EquipmentSchedule> > GetEquipmentSchedule(long equipmentId) { return(await EquipmentAccessor.GetEquipmentSchedule(equipmentId)); }