public async Task CreateBoard_ValidSize_ShouldReturnOk()
        {
            //Arrange
            var redisServiceMock = new Mock <IRedisService>();

            redisServiceMock.Setup(r => r.Set <It.IsAnyType>(It.IsAny <string>(), It.IsAny <It.IsAnyType>())).ReturnsAsync(true);
            var helperServiceMock = new Mock <IGameHelperService>();
            var controller        = new BoardGameController(redisServiceMock.Object, helperServiceMock.Object);

            //Act
            IActionResult result = await controller.CreateBoard(10);

            var okResult = result as OkObjectResult;

            //Asset
            Assert.IsNotNull(okResult);
            Assert.AreEqual(200, okResult.StatusCode);
        }
        public async Task CreateBoard_InValidSize_NegativeSize_ShouldReturnBadRequest()
        {
            //Arrange
            int size             = -10;
            var redisServiceMock = new Mock <IRedisService>();

            redisServiceMock.Setup(r => r.Set <It.IsAnyType>(It.IsAny <string>(), It.IsAny <It.IsAnyType>())).ReturnsAsync(true);
            var helperServiceMock = new Mock <IGameHelperService>();
            var controller        = new BoardGameController(redisServiceMock.Object, helperServiceMock.Object);

            //Act
            IActionResult result = await controller.CreateBoard(size);

            var badRequestResult = result as BadRequestObjectResult;

            //Asset
            Assert.IsNotNull(badRequestResult);
            Assert.AreEqual(400, badRequestResult.StatusCode);
            Assert.AreEqual("Board cannot be created of size " + size, badRequestResult.Value);
        }