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

            //act
            servise.GetGameByKey(null);
        }
Esempio 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);
        }
Esempio 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);
        }