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