public void TestConstructorShouldCreateRepository() { //Arrange var mockShopItemRepository = new Mock <IDatabaseContext>(); //Act var sut = new ShopItemRepository(mockShopItemRepository.Object); //Assert Assert.NotNull(sut); }
public ShopController(IOptions <WebApiSettings> settings, UserManager <EaUser> userManager, ShopRepository shopRepository, ShopItemRepository shopItemRepository, BuyRepository buyRepository) { _settings = settings; _userManager = userManager; _shopRepository = shopRepository; _buyRepository = buyRepository; _shopItemRepository = shopItemRepository; }
public AddShopItem() { db = new ShopItemRepository(); }