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); }
public void Test_GetGamesByPlatformTypes_Null_Array_Of_PlatformTypes() { //arrange GameService servise = new GameService(_unitOfWork.Object, null); //act List<GameDTO> gamesList = servise.GetGamesByPlatformTypes(null).ToList(); }