public void addingToCafeTest() { //Create a Test Project for your repository methods. (You don't need to test your constructors or objects, just your methods) /* StreamingContent content = new StreamingContent(); * content.Title = "Mad Max: Fury Road"; * * StreamingContentRepository repo = new StreamingContentRepository(); * bool wasAdded = repo.AddContentToDirectory(content); * Assert.IsTrue(wasAdded);*/ GBChallenge1.Menu cafeTest = new Menu(); cafeTest.Name = "Spaghetti"; menuRepository repo = new menuRepository(); bool wasAdded = repo.AddItemToDirecotry(cafeTest); Assert.IsTrue(wasAdded); }
public TodayCommandHandlerTests() => commandHandler = new TodayCommandHandler(menuRepository, slackbot);
public ClearCommandHandlerTests() => commandHandler = new ClearCommandHandler(menuRepository, slackbot);
public AddCommandHandlerTests() => commandHandler = new AddCommandHandler(menuRepository, slackbot);
public SearchCommandHandlerTests() => commandHandler = new SearchCommandHandler(menuRepository, slackbot);
public DayAfterTomorrowCommandHandlerTests() => commandHandler = new DayAfterTomorrowCommandHandler(menuRepository, slackbot);
public NextCommandHandlerTests() => commandHandler = new NextCommandHandler(menuRepository, slackbot);
public void Arrange() { _repo = new menuRepository(); _content = new MenuItem(5, "ham sandwich", "ham on bread", new List<string>(),{ "bread", "lettuce", "mayo", "pickle" }, 6.00m;
public ImportCommandHandlerTests() => commandHandler = new ImportCommandHandler(menuRepository, slackbot, logger);
public WeekCommandHandlerTests() => commandHandler = new WeekCommandHandler(menuRepository, slackbot);