public AccountService(IDataProvider dataProvider, IBankAccountProvider bankAccountProvider) { Condition.Requires(dataProvider, nameof(dataProvider)).IsNotNull(); Condition.Requires(bankAccountProvider, nameof(bankAccountProvider)).IsNotNull(); _dataProvider = dataProvider; _bankAccountProvider = bankAccountProvider; }
public NameOnBankAccountMustMatchCustomerNameV1(IBankAccountProvider bankAccountProvider, ICustomerProvider customerProvider) : base(bankAccountProvider, customerProvider) { // Map Inputs _inputs = new Inputs() { BankAccountName = bankAccountProvider.BankAccount.Name, CustomerName = customerProvider.Customer.Name }; }