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)); }
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)); }
public CreateWarehouseCommand(IWarehouseService warehouseService, ITownService townService, IAddressSevice addressService) { this.warehouseService = warehouseService; this.townService = townService; this.addressService = addressService; }
public ModifyAddressCommand(IAddressSevice addressSevice, ITownService townService) { this.addressSevice = addressSevice ?? throw new ArgumentNullException(nameof(addressSevice)); this.townService = townService ?? throw new ArgumentNullException(nameof(townService)); }
public JSONService(WHMSContext context, ITownService townServices, IAddressSevice addressSevice) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.townServices = townServices; this.addressSevice = addressSevice; }