public void Setup() { _context = SetTestDb.CreateContextForInMemory(); _reservationServices = new ReservationServices(_context); _contactService = new ContactService(_context); _reservationsController = new ReservationsController(_context, _reservationServices); }
private void AddDefaultCurrency() { _db = SetTestDb.CreateContextForInMemory(); _db.Currencies.Add(new Currency { Name = "dolar", Source = url, MonthlyLimit = monthlyLimit }); _db.SaveChanges(); }
public void Setup() { _db = SetTestDb.CreateContextForInMemory(); logger = new Mock <ILogger <CurrencyPriceServices> >(); }
public void Setup() { _db = SetTestDb.CreateContextForInMemory(); _contactService = new ContactService(_db); }