Beispiel #1
0
 public AddressLogic(IAddressDao <Address> iAddressDao, IValidateLogic <Address> IValidateLogic)
 {
     addressDao    = iAddressDao ?? throw new ArgumentNullException($"{nameof(iAddressDao)} is null!");
     validateLogic = IValidateLogic ?? throw new ArgumentNullException($"{nameof(IValidateLogic)} is null!");
 }
Beispiel #2
0
 static Dependencies()
 {
     addressDao           = new AddressDaoDb();
     addressValidateLogic = new AddressValidateLogic();
     AddressLogic         = new AddressLogic(addressDao, addressValidateLogic);
 }