public void EquipmentManager_GetAllEquipment() { EquipmentAccessor.Arrange(x => x.GetAllEquipment()) .Returns(Task.FromResult(Enumerable.Empty <Equipment>())) .OccursOnce(); var res = manager.GetAllEquipment().Result; Assert.IsNotNull(res); EquipmentAccessor.Assert(); }
public async Task <ActionResult> ManageEquipment() { var model = new ManageEquipmentViewModel(await EquipmentManager.GetAllEquipment()); return(View(model)); }