Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public TodayCommandHandlerTests() => commandHandler = new TodayCommandHandler(menuRepository, slackbot);
 public ClearCommandHandlerTests() => commandHandler = new ClearCommandHandler(menuRepository, slackbot);
Ejemplo n.º 4
0
 public AddCommandHandlerTests() => commandHandler = new AddCommandHandler(menuRepository, slackbot);
Ejemplo n.º 5
0
 public SearchCommandHandlerTests() => commandHandler = new SearchCommandHandler(menuRepository, slackbot);
 public DayAfterTomorrowCommandHandlerTests() => commandHandler = new DayAfterTomorrowCommandHandler(menuRepository, slackbot);
 public NextCommandHandlerTests() => commandHandler = new NextCommandHandler(menuRepository, slackbot);
Ejemplo n.º 8
0
 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);
Ejemplo n.º 10
0
 public WeekCommandHandlerTests() => commandHandler = new WeekCommandHandler(menuRepository, slackbot);