public void AccountTypesService_UnitOfService_Instantiation_Test() { IUnitOfService unitOfService = new Social.Core.UnitOfService.Implementation.UnitOfService(); IAccountTypesService Service = unitOfService.AccountTypesService; Assert.IsNotNull(Service); }
public AddEditBankAccountViewModel(IBankAccountsService bankAccountsService, RelatedPersonListViewModel relatedPersonListViewModel, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService) { _currenciesService = currenciesService; _bankAccountsService = bankAccountsService; _banksService = banksService; _accountTypesService = accountTypesService; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); BanksDropDownOpenedCommand = new RelayCommand(OnBanksDropDownOpened, () => Banks != null && Banks.Any()); CurrenciesDropDownOpenedCommand = new RelayCommand(OnCurrenciesDropDownOpened, () => Currencies != null && Currencies.Any()); RelatedPersonListViewModel = relatedPersonListViewModel; }
public BankAccountListViewModel(IBankAccountsService bankAccountsService, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService, ICompanyInformationsService companyInformationsService) { _companyInformationsService = companyInformationsService; CompanyInformationModel = _companyInformationsService.GetCompanyInformationModel(); _banksService = banksService; _currenciesService = currenciesService; _accountTypesService = accountTypesService; _bankAccountsService = bankAccountsService; AddBankAccountCommand = new RelayCommand(OnAddBankAccount); EditBankAccountCommand = new RelayCommand <BankAccount>(OnEditBankAccount); DeleteCommand = new RelayCommand <BankAccount>(OnDeleteBankAccount); AddRelatedPersonCommand = new RelayCommand <BankAccount>(OnAddRelatedPerson); BankAccount = new BankAccount(); }
public DLListViewModel(ISystemAccountingSettingsService systemAccountingSettingsService , IBankAccountsService bankAccountsService, IBanksService banksService, ICurrenciesService currenciesService, IAccountTypesService accountTypesService, ICompanyInformationsService companyInformationsService) { _companyInformationsService = companyInformationsService; CompanyInformationModel = _companyInformationsService.GetCompanyInformationModel(); _systemAccountingSettingsService = systemAccountingSettingsService; _banksService = banksService; _currenciesService = currenciesService; _accountTypesService = accountTypesService; _bankAccountsService = bankAccountsService; BanksDropDownOpenedCommand = new RelayCommand(OnBanksDropDownOpened, () => Banks != null && Banks.Any()); CurrenciesDropDownOpenedCommand = new RelayCommand(OnCurrenciesDropDownOpened, () => Currencies != null && Currencies.Any()); AddDLCommand = new RelayCommand(OnAddDL); EditDLCommand = new RelayCommand <DL>(OnEditDL); _accessUtility = SmObjectFactory.Container.GetInstance <AccessUtility>(); }
/// <summary> /// /// </summary> /// <param name="accountTypesService"></param> public AccountTypesController(IAccountTypesService accountTypesService) { _accountTypesService = accountTypesService ?? throw new ArgumentNullException(nameof(accountTypesService)); }