private FavoritesService CreateFavoritesService() { UserManager <User> userManagerMock = CreateUserManagerMock(); IUserCurrencyRepository userCurrencyRepository = CreateUserCurrencyRepository(); ICurrencyRepository currencyRepository = CreateCurrencyRepositoryMock(); FavoritesService favoritesService = new FavoritesService(userManagerMock, userCurrencyRepository, currencyRepository); return(favoritesService); }
public BalancesTotalService( IExchangeRateService exchangeRateService, IBalanceRepository balanceRepository, IUserCurrencyRepository userCurrencyRepository, IBalanceTotalCalculator balanceTotalCalculator) { _exchangeRateService = exchangeRateService; _balanceRepository = balanceRepository; _userCurrencyRepository = userCurrencyRepository; _balanceTotalCalculator = balanceTotalCalculator; }
public ExchangeRateService( IExchangeRateExternalService exchangeRateExternalService, IExchangeRateRepository exchangeRateRepository, ICurrencyRepository currencyRepository, IUserCurrencyRepository userCurrencyRepository, IUnitOfWork unitOfWork) { _exchangeRateExternalService = exchangeRateExternalService; _exchangeRateRepository = exchangeRateRepository; _currencyRepository = currencyRepository; _userCurrencyRepository = userCurrencyRepository; _unitOfWork = unitOfWork; }
public UserCurrencyService(IUserCurrencyRepository userCurrencyRepository, IUnitOfWork unitOfWork) { _userCurrencyRepository = userCurrencyRepository; _unitOfWork = unitOfWork; }
public FavoritesService(UserManager <User> userManager, IUserCurrencyRepository userCurrencyRepository, ICurrencyRepository currencyRepository) { _userManager = userManager; _userCurrencyRepository = userCurrencyRepository; _currencyRepository = currencyRepository; }