Exemplo n.º 1
0
 public ShoppingListService(IShoppingTemplateRepository shoppingTemplateRepository, IShoppingListRepository shoppingListRepository,
                            ISystemClock clock, ILogger <ShoppingListService> logger)
 {
     this.shoppingTemplateRepository = shoppingTemplateRepository ?? throw new ArgumentNullException(nameof(shoppingTemplateRepository));
     this.shoppingListRepository     = shoppingListRepository ?? throw new ArgumentNullException(nameof(shoppingListRepository));
     this.clock  = clock ?? throw new ArgumentNullException(nameof(clock));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 2
0
 public ShoppingTemplateService(IShoppingTemplateRepository repository, ILogger <ShoppingTemplateService> logger)
 {
     this.repository = repository ?? throw new ArgumentNullException(nameof(repository));
     this.logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }