public void MineSweeper_Update()
        {
            //arrange
            ILoggerFactory       loggerFactory = new LoggerFactory();
            ILogger <UnitOfWork> logger        = loggerFactory.CreateLogger <UnitOfWork>();

            UnitOfWork _unitOfWork = new UnitOfWork(new ApplicationContext(), logger);

            MineSweeper.Lib.PTL.MineSweeper entity = _unitOfWork.MineSweeper.GetAll().FirstOrDefault();

            if (entity != null)
            {
                entity.RequestProcessTimes = 99;
                //act
                _unitOfWork.MineSweeper.Update(entity);
                int result = _unitOfWork.Complete();
                //assert
                Assert.Equal(1, result);
            }
            else
            {
                // no data to update
                Assert.True(false);
            }
        }
        public void SP_MineSweeper_GetMineSweeperInput()
        {
            //arrange
            ILoggerFactory       loggerFactory = new LoggerFactory();
            ILogger <UnitOfWork> logger        = loggerFactory.CreateLogger <UnitOfWork>();

            UnitOfWork _unitOfWork = new UnitOfWork(new ApplicationContext(), logger);

            MineSweeper.Lib.PTL.MineSweeper entity = _unitOfWork.MineSweeper.GetAll().FirstOrDefault();

            if (entity != null)
            {
                //act
                MineSweeper.Lib.PTL.MineSweeper ms = _unitOfWork.MineSweeper.SP_GetMineInput(entity.Id).FirstOrDefault();

                //assert
                Assert.Equal(entity.Id, ms.Id);
            }
            else
            {
                //assert - no data to test on
                Assert.True(false, "no data to test on");
            }
        }