public async Task TestHomeWinsAwayWinsWAndDrawsMethodsIfAreWorkingCorrectly() { this.SeedTestData(); var h2hService = new H2HService(this.fixturesRepository); var homeWins = await this.h2hService.HomeTeamWins(1, 2); var awayWins = await this.h2hService.AwayTeamWins(1, 2); var draws = await this.h2hService.AwayTeamWins(1, 2); Assert.Equal(2, homeWins); Assert.Equal(1, awayWins); Assert.Equal(1, draws); }
public H2HServiceTests() { this.InitializeDatabaseAndRepositories(); this.InitializeMapper(); this.h2hService = new H2HService(this.fixturesRepository); }