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