public void GetShop_ShouldReturnCorrectShop() { var controller = new WebApiShops.Controllers.ShopsController(new WebApiShops.ShopsRepository()); var result = controller.GetById(2); Assert.IsNotNull(result); }
public void GetShopNuber_ShouldReturnCorrectShopNumber() { var repository = new WebApiShops.ShopsRepository(); var controller = new WebApiShops.Controllers.ShopsController(repository); var shops = controller.GetAll(); var result = controller.GetById(3); Assert.IsInstanceOfType(System.Web.Http.act); //Assert.AreEqual(shops[2], result); }