BusinessLogic.Tests.IntegrationTests.DataAccessTests.RepositoriesTests.PlayedGameRepositoryTests.CreatePlayedGameIntegrationTests.ItCreatesATwoPlayerPlayedGameAndSetsTheNumberOfPlayers C# (CSharp) Method

ItCreatesATwoPlayerPlayedGameAndSetsTheNumberOfPlayers() private method

        public void ItCreatesATwoPlayerPlayedGameAndSetsTheNumberOfPlayers()
        {
            using (NemeStatsDbContext dbContext = new NemeStatsDbContext())
            {
                PlayedGame playedGameFromTheDatabase = dbContext.PlayedGames.Find(testPlayedGames[0].Id);

                Assert.IsTrue(playedGameFromTheDatabase.NumberOfPlayers == 2);
            }
        }