public Task <string> ViewForSmallRecipeSearch(string word, string stores) { var recipe = new AddHtmlToRecipe(); Task <string> result = recipe.ShowRecipeSmallViewSearchAsync(word, stores, _context); return(result); }
public void Setup() { _uut = new AddHtmlToRecipe(); string ConnectionString = "Data Source=prj4-server.database.windows.net;Initial Catalog=prj4-database;User ID=maloudt;Password=Mldt1160"; SqlConnection conn = new SqlConnection(ConnectionString); conn.Open(); var options = new DbContextOptionsBuilder <Prj4databaseContext>() .UseSqlServer(conn).Options; _context = new Prj4databaseContext(options); }
public Task <string> GetShoppingCart(string words, string stores) { var recipe = new AddHtmlToRecipe(); return(recipe.GenerateShoppingCart(words, stores, _context)); }
public Task <string> ViewForSmallRecipe(string stores, int count) { var recipe = new AddHtmlToRecipe(); return(recipe.ShowRecipeSmallViewAsync(stores, count, _context)); }
public Task <string> ViewASpeceficRecipe(string words, double count) { var recipe = new AddHtmlToRecipe(); return(recipe.ShowRecipeFullView(words, count, _context)); }