public HomeService(IInformationRepository informationRepository, IUserRepository userRepository, IUserInformationRepository userInformationRepository, IConfiguration config, IMailService mailService, IHomeRepository homeRepository, IFCMService fcmService, IFriendshipRepository friendshipRepository, IShoppingListRepository shoppingListRepository, INotepadRepository notepadRepository, IExpenseRepository expenseRepository, IUserExpenseRepository userExpenseRepository) { _informationRepository = informationRepository; _userRepository = userRepository; _userInformationRepository = userInformationRepository; _config = config; _mailService = mailService; _homeRepository = homeRepository; _fcmService = fcmService; _friendshipRepository = friendshipRepository; _shoppingListRepository = shoppingListRepository; _notepadRepository = notepadRepository; _expenseRepository = expenseRepository; _userExpenseRepository = userExpenseRepository; }
public ShoppingListsController( IItemShoppingListLinkRepository itemListLinkRepository, IShoppingListRepository shoppingListRepository, IShoppingUserRepository shoppingUserRepository, IItemEntityRepository itemRepository, IRepository <StoreEntity> storeRepository, IRepository <AddressEntity> addressRepository, IItemStoreLinkRepository itemStoreLinkRepository, IRepository <StoreMapEntity> storeMapRepository, IRepository <DepartmentEntity> departmentRepository, ILowerDepartmentRepository lowerDepartmentRepository, IAisleRepository aisleRepository, ISectionRepository sectionRepository, IShelfRepository shelfRepository, IShelfSlotsRepository shelfSlotsRepository, IUrlHelper urlHelper) { _itemListLinkRepository = itemListLinkRepository; _storeRepository = storeRepository; _addressRepository = addressRepository; _shoppingListRepository = shoppingListRepository; _shoppingUserRepository = shoppingUserRepository; _itemRepository = itemRepository; _itemStoreLinkRepository = itemStoreLinkRepository; _storeMapRepository = storeMapRepository; _urlHelper = urlHelper; _departmentRepository = departmentRepository; _lowerDepartmentRepository = lowerDepartmentRepository; _aisleRepository = aisleRepository; _sectionRepository = sectionRepository; _shelfRepository = shelfRepository; _shelfSlotsRepository = shelfSlotsRepository; }
public RemoveItemFromShoppingListCommandHandler(IShoppingListRepository shoppingListRepository, IItemRepository itemRepository, ITransactionGenerator transactionGenerator) { this.shoppingListRepository = shoppingListRepository; this.itemRepository = itemRepository; this.transactionGenerator = transactionGenerator; }
public DeleteItemCommandHandler(IItemRepository itemRepository, IShoppingListRepository shoppingListRepository, ITransactionGenerator transactionGenerator) { this.itemRepository = itemRepository; this.shoppingListRepository = shoppingListRepository; this.transactionGenerator = transactionGenerator; }
public ItemSearchQueryHandler(IItemRepository itemRepository, IShoppingListRepository shoppingListRepository, IStoreRepository storeRepository, IItemSearchReadModelConversionService itemSearchReadModelConversionService) { this.itemRepository = itemRepository; this.shoppingListRepository = shoppingListRepository; this.storeRepository = storeRepository; this.itemSearchReadModelConversionService = itemSearchReadModelConversionService; }
public ShoppingListService(IUnitOfWork unitOfWork, IUserContext userContext, IShoppingListRepository shoppingListRepository, IPermissionService permissionService, IListItemRepository listItemRepository, IUserService userService) { _unitOfWork = unitOfWork; _shoppingListRepository = shoppingListRepository; _userContext = userContext; _permissionService = permissionService; _listItemRepository = listItemRepository; _userService = userService; }
public ShoppingListService(IShoppingListRepository shoppingListRepository, IUserRepository userRepository, IFCMService fcmService, IHomeRepository homeRepository) { _shoppingListRepository = shoppingListRepository; _userRepository = userRepository; _fcmService = fcmService; _homeRepository = homeRepository; }
public CreateStoreCommandHandler(IStoreRepository storeRepository, IStoreFactory storeFactory, IShoppingListFactory shoppingListFactory, IShoppingListRepository shoppingListRepository, ITransactionGenerator transactionGenerator) { this.storeRepository = storeRepository; this.storeFactory = storeFactory; this.shoppingListFactory = shoppingListFactory; this.shoppingListRepository = shoppingListRepository; this.transactionGenerator = transactionGenerator; }
public UsersController( //UserManager<StoreUserEntity> storeUserManager, //SignInManager<StoreUserEntity> storeSignInManager, //UserManager<ShoppingUserEntity> shoppingUserManager, //SignInManager<ShoppingUserEntity> shoppingSignInManager, UserManager <BaseUserEntity> baseUserManager, SignInManager <BaseUserEntity> baseSignInManager, IShoppingUserRepository shoppingUserRepository, IStoreUserRepository storeUserRepository, IRepository <AdminUserEntity> adminUserRepository, IRepository <BaseUserEntity> baseUserRespository, IRepository <StoreEntity> storeRepository, IRepository <StoreMapEntity> storeMapRepository, IRepository <DepartmentEntity> departmentRepository, IRepository <AddressEntity> addressRepository, IShoppingListRepository shoppingListRepository, IItemShoppingListLinkRepository itemListLinkRepository, IItemEntityRepository itemRepository, IItemStoreLinkRepository itemStoreLinkRepository, ILowerDepartmentRepository lowerDepartmentRepository, IAisleRepository aisleRepository, ISectionRepository sectionRepository, IShelfRepository shelfRepository, IShelfSlotsRepository shelfSlotsRepository, IUrlHelper urlHelper) { _baseUserManager = baseUserManager; _baseSignInManager = baseSignInManager; //_storeUserManager = storeUserManager; //_storeSignInManager = storeSignInManager; //_shoppingUserManager = shoppingUserManager; //_shoppingSignInManager = shoppingSignInManager; _shoppingUserRepository = shoppingUserRepository; _storeUserRepository = storeUserRepository; _adminUserRepository = adminUserRepository; _baseUserRepository = baseUserRespository; _storeRepository = storeRepository; _addressRepository = addressRepository; _shoppingListRepository = shoppingListRepository; _itemListLinkRepository = itemListLinkRepository; _itemRepository = itemRepository; _itemStoreLinkRepository = itemStoreLinkRepository; _storeMapRepository = storeMapRepository; _departmentRepository = departmentRepository; _lowerDepartmentRepository = lowerDepartmentRepository; _aisleRepository = aisleRepository; _sectionRepository = sectionRepository; _shelfRepository = shelfRepository; _shelfSlotsRepository = shelfSlotsRepository; _urlHelper = urlHelper; }
public ItemShoppingListLinksController( IItemShoppingListLinkRepository itemListLinkRepository, IShoppingListRepository shoppingListRepository, IItemStoreLinkRepository itemStoreLinkRepository, IShoppingUserRepository shoppingUserRepository, IItemEntityRepository itemRepository ) { _itemListLinkRepository = itemListLinkRepository; _shoppingListRepository = shoppingListRepository; _shoppingUserRepository = shoppingUserRepository; _itemRepository = itemRepository; _itemStoreLinkRepository = itemStoreLinkRepository; }
public UnitOfWork(BustleContext bustleContext, IUserProfileRepository userProfileRepository, ISubscriptionRepository subscriptionRepository, IInventoryRepository InventoryRepository, ICartRepository cartRepository, IShoppingListRepository shoppingRepository ) { this._context = bustleContext; this.UserProfiles = userProfileRepository; this.Subscriptions = subscriptionRepository; this.Inventories = InventoryRepository; this.Carts = cartRepository; this.ShoppingLists = shoppingRepository; }
public override async Task ExecuteMigrationAsync() { SQLiteAsyncConnection connection = GetConnection(); IShoppingListRepository shoppingListRepository = SimpleIoc.Default.GetInstance <IShoppingListRepository>(); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Słodycze", "Sweets", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Przekąski", "Snacks", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Owoce", "Fruits", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Oliwa", "Olive", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Napoje", "Drink", ProductGroup.Drinks)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Warzywa", "Vege", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Rybka", "Fish", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Chleb", "Bread", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Mięso", "Meat", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Przyprawy", "Spice", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Nabiał", "Dairy", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Sypkie", "Grain", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Jedzenie", "FoodGeneral", ProductGroup.Food)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Alko", "Beer", ProductGroup.Drinks)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Rośliny", "Plant", ProductGroup.Home)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Kosmetyki", "Cosmetics", ProductGroup.Cosmetics)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Chemia", "Cleaning", ProductGroup.Chemistry)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Higiena", "Hygiene", ProductGroup.Cosmetics)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Home&You", "Home", ProductGroup.Home)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Ciuchy", "Clothes", ProductGroup.Clothes)); await shoppingListRepository.InsertProductTypeAsync(GetProductType("Leki", "Medicine", ProductGroup.Chemistry)); }
public void Setup() { _shoppingListItems = TestHelper.GetAllItems(); var data = _shoppingListItems.AsQueryable(); var mockSet = new Mock <DbSet <Item> >(); mockSet.Setup(m => m.AddRange(data)); mockSet.As <IQueryable <Item> >().Setup(m => m.Provider).Returns(data.Provider); mockSet.As <IQueryable <Item> >().Setup(m => m.Expression).Returns(data.Expression); mockSet.As <IQueryable <Item> >().Setup(m => m.ElementType).Returns(data.ElementType); mockSet.As <IQueryable <Item> >().Setup(m => m.GetEnumerator()).Returns(data.GetEnumerator()); var mockContext = new Mock <ShoppingListDbContext>(); mockContext.Setup(c => c.Items).Returns(mockSet.Object); _shoppingListRepository = new ShoppingListRepository(mockContext.Object); _shoppingListService = new ShoppingListService(_shoppingListRepository); }
public ShoppingListsController() { _shoppingListRepository = new ShoppingListRepository(); }
public ShoppingListService(ISimpleAuthService simpleAuthService, IShoppingListRepository shoppingListRepository) { _simpleAuthService = simpleAuthService; _shoppingListRepository = shoppingListRepository; }
public ChangeItemQuantityOnShoppingListCommandHandler(IShoppingListRepository shoppingListRepository, IItemRepository itemRepository) { this.shoppingListRepository = shoppingListRepository; this.itemRepository = itemRepository; }
public ShoppingListUpdateService(IShoppingListRepository shoppingListRepository, IAddItemToShoppingListService addItemToShoppingListService) { this.shoppingListRepository = shoppingListRepository; this.addItemToShoppingListService = addItemToShoppingListService; }
public SalesOrdersController(ISalesOrderRepository salesOrderRepository, IUserRepository userRepository, IShoppingListRepository shoppingListRepository) { this.shoppingListRepository = shoppingListRepository; this.userRpository = userRepository; this.salesOrderRepository = salesOrderRepository; }
public ShopItemController(IShoppingListRepository repository) { _repository = repository; }
public ShoppingListService(IShoppingListRepository shoppingListRepository, IMapper mapper) { _shoppingListRepository = shoppingListRepository; _mapper = mapper; }
public RemoveItemFromBasketCommandHandler(IShoppingListRepository shoppingListRepository, IItemRepository itemRepository) { this.shoppingListRepository = shoppingListRepository; this.itemRepository = itemRepository; }
public BasketsController(IShoppingListRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public ShopplingListController(IShoppingListRepository shoppingListRepository) { _shoppingListRepository = shoppingListRepository; }
public ShoppingListService(IShoppingListRepository repository) { _repository = repository; }
public ShoppingListController(IShoppingListRepository repo, IMapper mapper, IIngredientRepository ingredientRepo) { _repo = repo; _mapper = mapper; _ingredientRepo = ingredientRepo; }
public ShoppingListService(IShoppingListRepository shoppingListRepository) { _shoppingListRepository = shoppingListRepository; }
public ShoppingListService(IRecipeRepository recipeRepository, IShoppingListRepository shoppingListRepository) { _recipeRepository = recipeRepository; _shoppingListRepository = shoppingListRepository; }
public ShoppingListController(IShoppingListRepository shoppingItemRepository) { this.shoppingItemRepository = shoppingItemRepository; }
public ShoppingListController(IShoppingListRepository shoppinglistrepository) { this.shoppinglistrepository = shoppinglistrepository; }