Ejemplo n.º 1
0
        public void Test_GetGameByKey_Key_Is_Null()
        {
            //arrange
            GameService servise = new GameService(_unitOfWork.Object, null);

            //act
            servise.GetGameByKey(null);
        }
Ejemplo n.º 2
0
        public void Test_GetGameByKey_Return_Right_Object()
        {
            //arrange
            GameService servise = new GameService(_unitOfWork.Object, null);

            //act

            GameDTO game = servise.GetGameByKey("me3");

            //assert
            Assert.IsTrue(game.GameId == 1);
        }
Ejemplo n.º 3
0
        public void Test_GetGameByKey_Game_Is_Not_Null()
        {
            //arrange
            GameService servise = new GameService(_unitOfWork.Object, null);

            //act
            GameDTO game = servise.GetGameByKey("me3");

            //asset
            Assert.IsNotNull(game);
        }