/// <summary> /// Default constructor for this service /// </summary> ///<param name="bankTransferDomainService">Bank transfer domain service dependency</param> /// <param name="bankAccountRepository">Bank account repository dependency</param> public BankingManagementService(IBankTransferDomainService bankTransferDomainService, IBankAccountRepository bankAccountRepository) { if (bankTransferDomainService == (IBankTransferDomainService)null) throw new ArgumentNullException("bankTransferDomainService", Resources.Messages.exception_DependenciesAreNotInitialized); if (bankAccountRepository == (IBankAccountRepository)null) throw new ArgumentNullException("bankAccountRepository", Resources.Messages.exception_DependenciesAreNotInitialized); _bankTransferDomainService = bankTransferDomainService; _bankAccountRepository = bankAccountRepository; }
/// <summary> /// Default constructor for this service /// </summary> ///<param name="bankTransferDomainService">Bank transfer domain service dependency</param> /// <param name="bankAccountRepository">Bank account repository dependency</param> public BankingManagementService(IBankTransferDomainService bankTransferDomainService, IBankAccountRepository bankAccountRepository) { if (bankTransferDomainService == (IBankTransferDomainService)null) { throw new ArgumentNullException("bankTransferDomainService", Resources.Messages.exception_DependenciesAreNotInitialized); } if (bankAccountRepository == (IBankAccountRepository)null) { throw new ArgumentNullException("bankAccountRepository", Resources.Messages.exception_DependenciesAreNotInitialized); } _bankTransferDomainService = bankTransferDomainService; _bankAccountRepository = bankAccountRepository; }