Ejemplo n.º 1
0
        public void Get_Max_and_Min_Game_Year_Should_Return_Two_Years()
        {
            TestHelpers.SetupDbSet(this.mockSet, this.data);

            GamesController controller = new GamesController(this.mockContext.Object);

            controller.Request       = new HttpRequestMessage();
            controller.Configuration = new HttpConfiguration();

            var response = controller.GetMinMaxYears(true);

            Assert.IsNotNull(response);
            Assert.AreEqual(1986, response[0]);
            Assert.AreEqual(2004, response[1]);
        }