Ejemplo n.º 1
0
        public void TestGetYear()
        {
            Record r1 = new Record("Last Christmas", "Wham!", 265, 1984);
            Record r2 = new Record("Last Resort", "Papa Roach", 200, 2000);

            controller.Post(r1);
            controller.Post(r2);

            Assert.AreEqual(1, controller.GetByYear(1990).Count);
            Assert.AreEqual(2, controller.GetByYear(1980).Count);
        }