public RecipesService(RecipesDbContext context) { _context = context; }
public RecipesService() { var options = new DbContextOptionsBuilder <RecipesDbContext>().UseInMemoryDatabase("TopsyTurvyCakes").Options; _context = new RecipesDbContext(options); }