Example #1
0
        public void AddNewOuting()
        {
            KomodoOutingChallenge.OutingRepo repo = new KomodoOutingChallenge.OutingRepo();

            int countofoutings = repo.ViewAllOutings().Count;

            Outing outing = new Outing(TypeOfEvent.Golf, 30, DateTime.UtcNow, 15d);

            repo.AddOutingEvent(outing);

            Assert.AreEqual(countofoutings + 1, repo.ViewAllOutings().Count);
        }
Example #2
0
        public void TestMethod1()
        {
            KomodoOutingChallenge.OutingRepo repo = new KomodoOutingChallenge.OutingRepo();

            Assert.AreEqual(4, repo.ViewAllOutings().Count);
        }