Example #1
0
        public void DonutAddAndGet()
        {
            Donut c = new Donut("SugarHigh", 999, 12.5, DonutTypeEnum.Chocolate);

            Assert.AreEqual(repository.GetDonutsNumber(), 4);
            repository.AddDonut(c);
            Assert.AreEqual(repository.GetDonutsNumber(), 5);
            Donut temp = repository.GetDonut(999);

            Assert.AreEqual(temp, c);
        }
Example #2
0
 public void AddDonut(Donut donut)
 {
     repository.AddDonut(donut);
 }