protected void TestInitializeBase() { var config = new ConfigurationBuilder().AddJsonFile("appconfig.json").Build();// ECB API URL HERE userRepository = new UserRepository(); userService = new UserService(userRepository); currencyService = new CurrencyService(config); accountService = new AccountService(userService, currencyService); defaultThreeAccountCurrencies = new List <Currency> { Currency.RUB, Currency.USD, Currency.EUR }; defaultOneAccountCurrency = new List <Currency> { Currency.IDR }; uniqueUsers = UsersInit.GetAllUsers(); dupeUsers = UsersInit.GetAllUsersWithDuplicate(); uniqueAccounts = AccountInit.GetAllAccounts(); dupeAccounts = AccountInit.GetAllAccountsWithDuplicate(); uniqueAccountInfoColl = AccountInfoInit.GetAccountInfoList(); dupeAccountInfoColl = AccountInfoInit.GetAccountInfosWithDuplicate(); uniqueMoneyColl = MoneyListInit.GetMoneyList1(); dupeMoneyColl = MoneyListInit.GetMoneyListWithDuplicates(); basicTestMoneyList = MoneyListInit.GetOperatorTestMoney(); uniqueVOCollections = ValueObjectCollectionInit.GetValueObjectCollectionList(); dupeVOCollections = ValueObjectCollectionInit.GetValueObjectCollectionListWithDuplicates(); }
public UserRepository() { _users = UsersInit.GetAllUsers(); }