Exemplo n.º 1
0
 public DeleteTownCommand(ITownService townService, IWriter writer, IReader reader, IAddressSevice addressSevice)
 {
     this.townService   = townService ?? throw new ArgumentNullException(nameof(townService));
     this.writer        = writer ?? throw new ArgumentNullException(nameof(writer));
     this.reader        = reader ?? throw new ArgumentNullException(nameof(reader));
     this.addressSevice = addressSevice ?? throw new ArgumentNullException(nameof(addressSevice));
 }
Exemplo n.º 2
0
 public CreatePartnerCommand(IPartnerService partnerService, IAddressSevice addressSevice, ITownService townService)
 {
     this.partnerService = partnerService ?? throw new ArgumentNullException(nameof(partnerService));
     this.addressSevice  = addressSevice ?? throw new ArgumentNullException(nameof(addressSevice));
     this.townService    = townService ?? throw new ArgumentNullException(nameof(townService));
 }
Exemplo n.º 3
0
 public CreateWarehouseCommand(IWarehouseService warehouseService, ITownService townService, IAddressSevice addressService)
 {
     this.warehouseService = warehouseService;
     this.townService      = townService;
     this.addressService   = addressService;
 }
Exemplo n.º 4
0
 public ModifyAddressCommand(IAddressSevice addressSevice, ITownService townService)
 {
     this.addressSevice = addressSevice ?? throw new ArgumentNullException(nameof(addressSevice));
     this.townService   = townService ?? throw new ArgumentNullException(nameof(townService));
 }
Exemplo n.º 5
0
 public JSONService(WHMSContext context, ITownService townServices, IAddressSevice addressSevice)
 {
     this.context       = context ?? throw new ArgumentNullException(nameof(context));
     this.townServices  = townServices;
     this.addressSevice = addressSevice;
 }