public ClientShopNavController(IShopRepositoryService shopClient) { if (shopClient == null) { throw new ArgumentNullException(nameof(shopClient)); } _shopClient = shopClient; }
public AdministratorAuthenticationRouter(IShopRepositoryService shopRepository) { if (shopRepository == null) { throw new ArgumentNullException(nameof(shopRepository)); } _shopRepository = shopRepository; }
public RoleAuthenticationRouterFactory(IShopRepositoryService shopRepositoryClient) { if (shopRepositoryClient == null) { throw new ArgumentNullException(nameof(shopRepositoryClient)); } Implementations = new Dictionary <UserRankDto, IRoleAuthenticationRouter> { { UserRankDto.Client, new ClientAuthenticationRouter() }, { UserRankDto.ShopAdministrator, new ShopAdministratorAuthenticationRouter() }, { UserRankDto.SystemAdministrator, new AdministratorAuthenticationRouter(new ShopRepositoryServiceClient()) } }; }
public ShopController(IShopConfigurationService shopConfigurationClient, IShopRepositoryService shopRepositoryClient) { if (shopConfigurationClient == null) { throw new ArgumentNullException(nameof(shopConfigurationClient)); } if (shopRepositoryClient == null) { throw new ArgumentNullException(nameof(shopRepositoryClient)); } _shopConfigurationClient = shopConfigurationClient; _shopRepositoryClient = shopRepositoryClient; }
public ClientCoreController(IShopRepositoryService shopRepository, IProductRepositoryService productRepository, IBasketRepositoryService basketRepository) { if (shopRepository == null) { throw new ArgumentNullException(nameof(shopRepository)); } if (productRepository == null) { throw new ArgumentNullException(nameof(productRepository)); } if (basketRepository == null) { throw new ArgumentNullException(nameof(basketRepository)); } _shopRepository = shopRepository; _productRepository = productRepository; _basketRepository = basketRepository; }
public ShopAdministrationCoreController(IProductCategoryRepositoryService productCategoryRepository, IProductRepositoryService productRepositoryService, IShopRepositoryService shopRepository) { if (productCategoryRepository == null) { throw new ArgumentNullException(nameof(productCategoryRepository)); } if (productRepositoryService == null) { throw new ArgumentNullException(nameof(productRepositoryService)); } if (shopRepository == null) { throw new ArgumentNullException(nameof(shopRepository)); } _productCategoryRepository = productCategoryRepository; _productRepositoryService = productRepositoryService; _shopRepository = shopRepository; }
public SystemAdminController(IUserRepositoryService userRepository, IShopRepositoryService shopRepository, IUserAssignmentService userAssignmentService) { if (userRepository == null) { throw new ArgumentNullException(nameof(userRepository)); } if (shopRepository == null) { throw new ArgumentNullException(nameof(shopRepository)); } if (userAssignmentService == null) { throw new ArgumentNullException(nameof(userAssignmentService)); } _userRepository = userRepository; _shopRepository = shopRepository; _userAssignmentService = userAssignmentService; }