public async Task TestAddOrUpdateMatches_AddMatches() { _applicationContext.Database.EnsureDeleted(); var tables = await _matchService.AddOrUpdateMatches(matchesDto); var matches = _applicationContext.Matches.ToList(); Assert.AreEqual(4, matches.Count); Assert.AreEqual(1, tables.Count); Assert.AreEqual("Team 3", tables[0].Standing[0].Team); Assert.AreEqual(6, tables[0].Standing[0].Points); Assert.AreEqual(1, tables[0].Standing[0].Rank); Assert.AreEqual(4, tables[0].Standing[0].Goals); Assert.AreEqual(1, tables[0].Standing[0].GoalsAgainst); Assert.AreEqual(3, tables[0].Standing[0].GoalDifference); Assert.AreEqual(2, tables[0].Standing[0].Win); Assert.AreEqual(0, tables[0].Standing[0].Lose); Assert.AreEqual(0, tables[0].Standing[0].Draw); }