コード例 #1
0
        public void Test_GetGamesByPlatformTypes_Return_Right_Object()
        {
            //arrange
            GameService servise = new GameService(_unitOfWork.Object, null);

            //act
            List<GameDTO> gamesList = servise.GetGamesByPlatformTypes( new string [] { "PC" }).ToList();

            //assert
            Assert.AreEqual(2, gamesList.Count);
            Assert.AreEqual(1, gamesList[0].GameId);
            Assert.AreEqual(2, gamesList[1].GameId);
        }
コード例 #2
0
        public void Test_GetGamesByPlatformTypes_Null_Array_Of_PlatformTypes()
        {
            //arrange
            GameService servise = new GameService(_unitOfWork.Object, null);

            //act
            List<GameDTO> gamesList = servise.GetGamesByPlatformTypes(null).ToList();
        }