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

            var res = accessor.GetAllEquipment().Result;

            Assert.IsNotNull(res);
            Assert.AreEqual(typeof(List <Equipment>), res.GetType());
            Assert.AreEqual(3, res.Count());
            Assert.AreEqual("Name 1", res.First().Name);
        }
コード例 #2
0
 public async Task <IEnumerable <Equipment> > GetAllEquipment()
 {
     return(await EquipmentAccessor.GetAllEquipment());
 }