public void WeaponsSelect() { WeaponRepository repo = new WeaponRepository(new WeaponSQLContext()); List <Weapon> c = repo.GetAll(); Assert.IsNotNull(c, "Weapons weren't correctly retrieved"); }
public ActionResult Weapons() { weaponRepository = new WeaponRepository(); var weapons = weaponRepository.GetAll(); return(View(weapons)); }
public PagedResult <WeaponResource> GetWeapons(Query query, WeaponFilter filter) { var weaponsEnumerable = _weaponRepository.GetAll(query, filter); var result = _mapper.Map <PagedResult <WeaponResource> >(weaponsEnumerable); return(result); }
public void ClearDatabase() { List <Weapon> weapons = mediatorweapon.GetAll(); List <Warframe> warframes = mediatorwarframe.GetAll(); for (int i = 1; i <= weapons.Capacity; i++) { mediatorweapon.DeleteByID(weapons[i].ID); } for (int i = 1; i <= warframes.Capacity; i++) { mediatorwarframe.DeleteByID(warframes[i].ID); } }
public ActionResult Weapons() { return(View(weapon.GetAll())); }