public void AddToMenu_ShouldGetCorrectBoolean() { MenuDetails content = new MenuDetails(); MenuDetailsRepository repository = new MenuDetailsRepository(); bool addResult = repository.AddMenuDetails(content); Assert.IsTrue(addResult); Console.WriteLine(addResult); }
public void GetMenu_ShouldReturnCorrectCollection() { MenuDetails content = new MenuDetails(); MenuDetailsRepository repo = new MenuDetailsRepository(); repo.AddMenuDetails(content); List <MenuDetails> menuList = repo.GetDetails(); bool menuHasContent = menuList.Contains(content); Assert.IsTrue(menuHasContent); }