コード例 #1
0
        public void EquipmentAccessor_GetEquipmentSchedule_Empty()
        {
            accessor = GetAccessor();

            var res = accessor.GetEquipmentSchedule(99).Result;

            Assert.IsNotNull(res);
            Assert.AreEqual(0, res.Count());
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public async Task <IEnumerable <EquipmentSchedule> > GetEquipmentSchedule(long equipmentId)
 {
     return(await EquipmentAccessor.GetEquipmentSchedule(equipmentId));
 }