/// <summary> /// Prime the fixture data sources /// </summary> /// <returns></returns> public async Task AddDataSourceFixturesAsync() { var encrypter = new TyfSimpleAes(); var dataSources = new List <DataSourceFixture>() { new DataSourceFixture() { DataSourceDescription = @"First Division Fixtures - 18/19", Division = "Division 1", DivisionCode = "DIV1", Url = @"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=148", UrlHash = encrypter.Encrypt(@"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=148"), TimeStamp = SystemTime.Now(), ClassNameNode = @"//table[@class='leagueManager_fixturesTable']" }, new DataSourceFixture() { DataSourceDescription = @"Second Division Fixtures - 18/19", Division = "Division 2", DivisionCode = "DIV2", Url = @"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=149", UrlHash = encrypter.Encrypt(@"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=149"), TimeStamp = SystemTime.Now(), ClassNameNode = @"//table[@class='leagueManager_fixturesTable']" }, new DataSourceFixture() { DataSourceDescription = @"Third Division Fixtures - 18/19", Division = "Division 3", DivisionCode = "DIV3", Url = @"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=150", UrlHash = encrypter.Encrypt(@"http://www.gbwba.org.uk/gbwba/index.cfm/the-league/?v=lf&LeagueId=150"), TimeStamp = SystemTime.Now(), ClassNameNode = @"//table[@class='leagueManager_fixturesTable']" } }; foreach (var item in dataSources) { await _wpbService.CreateFixtureDataSourceAsync(item); } }