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); }
public async Task <IEnumerable <Equipment> > GetAllEquipment() { return(await EquipmentAccessor.GetAllEquipment()); }