public InMemoryTicTacToeRepositoryTests() : base()
        {
            var inMemoryDb = new InMemoryDb();

            _gameRepository      = new InMemoryGameRepository(inMemoryDb);
            _ticTacToeRepository = new InMemoryTicTacToeRepository(inMemoryDb);
        }
 public void SetUp()
 {
     _repo = new InMemoryGameRepository();
     if (_repo.HasPrivateField <ConcurrentDictionary <Guid, IGame> >())
     {
         _internalDictionary = _repo.GetPrivateFieldValue <ConcurrentDictionary <Guid, IGame> >();
     }
 }
 public void Init()
 {
     mockGameFactory = new Mock <IGameFactory>();
     mockGame        = new Mock <IGame>();
     mockGame.Name   = "Game1";
     mockGame.Setup(x => x.Guid).Returns(guidGame);
     mockGameFactory.Setup(x => x.Create(It.IsAny <IShip[]>(), It.IsAny <IDifficultyLevel>())).Returns(mockGame.Object);
     gameRepository = new InMemoryGameRepository(mockGameFactory.Object);
 }
 public InMemoryGameRepositoryTests() : base()
 {
     _repository = new InMemoryGameRepository(new InMemoryDb());
 }