Exemple #1
0
 public AddressItemAdapter(
     ICustomerRepository customerRepository,
     IAddressItemRepository itemRepository)
 {
     if (customerRepository == null)
     {
         throw new ArgumentNullException("customerRepository");
     }
     if (itemRepository == null)
     {
         throw new ArgumentNullException("itemRepository");
     }
     this.customerRepository = customerRepository;
     this.itemRepository     = itemRepository;
     AddressItemMapper       = new AddressItemMapper();
 }
 public AddressItemAdapter(
     ICustomerRepository customerRepository, 
     IAddressItemRepository itemRepository)
 {
     if (customerRepository == null)
     {
         throw new ArgumentNullException("customerRepository");
     }
     if (itemRepository == null)
     {
         throw new ArgumentNullException("itemRepository");
     }
     this.customerRepository = customerRepository;
     this.itemRepository = itemRepository;
     AddressItemMapper = new AddressItemMapper();
 }