public void TestConstructorShouldCreateRepository()
        {
            //Arrange
            var mockShopItemRepository = new Mock <IDatabaseContext>();
            //Act
            var sut = new ShopItemRepository(mockShopItemRepository.Object);

            //Assert
            Assert.NotNull(sut);
        }
Esempio n. 2
0
 public ShopController(IOptions <WebApiSettings> settings,
                       UserManager <EaUser> userManager,
                       ShopRepository shopRepository,
                       ShopItemRepository shopItemRepository,
                       BuyRepository buyRepository)
 {
     _settings           = settings;
     _userManager        = userManager;
     _shopRepository     = shopRepository;
     _buyRepository      = buyRepository;
     _shopItemRepository = shopItemRepository;
 }
Esempio n. 3
0
 public AddShopItem()
 {
     db = new ShopItemRepository();
 }