Exemplo n.º 1
0
        public ShippingService(
            IWebsiteInfo websiteInfo,
            IWebsiteRepository websiteRepository)
        {
            websiteInfo.CheckArgumentIsNull(nameof(websiteInfo));
            _websiteInfo = websiteInfo;

            websiteRepository.CheckArgumentIsNull(nameof(websiteRepository));
            _websiteRepository = websiteRepository;
        }
Exemplo n.º 2
0
        public WebsiteService(
            ICurrencyRepository currencyRepository,
            IWebsiteRepository repository,
            IWebsiteFactory factory)
        {
            currencyRepository.CheckArgumentIsNull(nameof(currencyRepository));
            _currencyRepository = currencyRepository;

            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;
        }