public IOddsStrategy CreateOddsStrategy(Model.IValueOptions valueOptions) { if (valueOptions.Sport.SportName == "Football") { return(new ExcelFootballOddsStrategy(this.spreadsheetData)); } else if (valueOptions.Sport.SportName == "Tennis") { return(new ExcelTennisOddsStrategy(this.spreadsheetData)); } else { throw new ArgumentException("valueOptions.Sport.SportName"); } }
public Model.GenericPrediction FetchSinglePrediction(Entities.TeamPlayer teamPlayerA, Entities.TeamPlayer teamPlayerB, Entities.Tournament tournament, Model.IValueOptions valueOptions) { throw new NotImplementedException(); }
public IEnumerable <Model.GenericPrediction> FetchPredictionsCoupon(Model.IValueOptions valueOptions) { return(this.spreadsheetData.GetPredictions(valueOptions)); }