Exemple #1
0
        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);
        }
Exemple #2
0
 public H2HServiceTests()
 {
     this.InitializeDatabaseAndRepositories();
     this.InitializeMapper();
     this.h2hService = new H2HService(this.fixturesRepository);
 }