Пример #1
0
        public RecipesService()
        {
            var options = new DbContextOptionsBuilder <RecipesDbContext>()
                          .UseInMemoryDatabase("TopsyTurvyCakes")
                          .Options;

            _context = new RecipesDbContext(options);
        }
Пример #2
0
 public RecipesService(RecipesDbContext context)
 {
     _context = context;
 }