private void Initialize2010Williams() { FastTeamData ftd = new FastTeamData() { ManagerName = "Frank Williams", PlayerCountryName = "UK", TeamName = "AT&T Williams", WebTeamName = "Williams-Cosworth", ShortTeamName = "FW", Driver1Name = "Rubens Barrichello", Driver1No = 9, Driver1ShortName = "BAR", Driver2Name = "Nico Hulkenberg", Driver2ShortName = "HUL", Driver2No = 10 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Williams FW32", DesignShortName = "FW32", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Williams Wings", DesignShortName = "FWW", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Williams Diffuser", DesignShortName = "FWD", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Williams Transmission System", DesignShortName = "FWTS", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Williams Clutch System", DesignShortName = "FWCS", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Williams Suspension System", DesignShortName = "FWSS", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Williams Brakes System", DesignShortName = "FWBS", DesignOwnerShortName = "FW" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Cosworth CA2010", DesignShortName = "CA2010", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void InitializeTeam(FastTeamData teamData, List<FastPartDesignData> designData) { // Repositories var countriesRepo = this.container.Resolve<ICountryRepository>(); var teamsRepo = this.container.Resolve<ITeamRepository>(); var driversRepo = this.container.Resolve<IDriverRepository>(); var designTypesRepo = this.container.Resolve<IPartDesignTypeRepository>(); var partDesignsRepo = this.container.Resolve<IPartDesignRepository>(); var partsRepo = this.container.Resolve<IPartRepository>(); var playersRepo = this.container.Resolve<IGenericRepository<Player>>(); // Country Country country = countriesRepo.GetByName(teamData.PlayerCountryName); if (country == null) { country = new Country() { Name = teamData.PlayerCountryName }; countriesRepo.Save(country); } // Design Types var designTypes = designTypesRepo.GetAllInDictionary(); // Team Team theTeam = teamsRepo.GetByShortName(teamData.ShortTeamName); if (theTeam == null) { Player thePlayer = new Player() { Name = teamData.ManagerName, Country = country }; playersRepo.Save(thePlayer); theTeam = new Team() { Name = teamData.TeamName, WebName = teamData.WebTeamName, Manager = thePlayer, ShortName = teamData.ShortTeamName }; teamsRepo.Save(theTeam); } // Drivers Driver driver1 = driversRepo.GetByShortName(teamData.Driver1ShortName); if (driver1 == null) { driver1 = new Driver() { Name = teamData.Driver1Name, ShortName = teamData.Driver1ShortName, Owner = theTeam }; driversRepo.Save(driver1); } Driver driver2 = driversRepo.GetByShortName(teamData.Driver2ShortName); if (driver2 == null) { driver2 = new Driver() { Name = teamData.Driver2Name, ShortName = teamData.Driver2ShortName, Owner = theTeam }; driversRepo.Save(driver2); } Driver testDriver = null; if (!String.IsNullOrEmpty(teamData.TestDriverName)) { testDriver = driversRepo.GetByShortName(teamData.TestDriverShortName); if (testDriver == null) { testDriver = new Driver() { Name = teamData.TestDriverName, ShortName = teamData.TestDriverShortName, Owner = theTeam }; driversRepo.Save(testDriver); } } // Part designs IList<PartDesign> designs = new List<PartDesign>(); foreach (var item in designData) { Team t = null; if (item.DesignOwnerShortName == theTeam.Name) { t = theTeam; } else if (!string.IsNullOrEmpty(item.DesignOwnerShortName)) { t = teamsRepo.GetByShortName(item.DesignOwnerShortName); } designs.Add(this.CreateAndAssignPartDesign(item.DesignName, item.DesignShortName, partDesignsRepo, designTypes[item.DesignTypeName], t)); } // Parts foreach (var design in designs) { for (int i = 0; i < 4; i++) { string code = string.Concat(design.Code, ".", i.ToString("000", CultureInfo.CurrentCulture)); if (design.Owner == null || design.Owner.ShortName != theTeam.ShortName) { code = string.Concat(theTeam.ShortName, ".", code); } Part thePart = partsRepo.GetByCode(code); if (thePart == null) { thePart = new Part(design) { Code = code, Owner = theTeam, ProductionState = EDevelopmentState.Finished }; partsRepo.Save(thePart); } if (!theTeam.Parts.Contains(thePart)) { theTeam.Parts.Add(thePart); } } } // CARS if (theTeam.Vehicles.Count < 2) { Vehicle car1 = new Vehicle() { Team = theTeam, Driver = driver1, Number = teamData.Driver1No, VehicleType = EVehicleType.FirstVehicle }; foreach (var kvp in designTypes) { Part part = theTeam.Parts.First(x => x.Design.PartDesignType == kvp.Value && x.MountedIn == null); if (part != null) { car1.WearingParts.Add(part); part.MountedIn = car1; } } theTeam.Vehicles.Add(car1); Vehicle car2 = new Vehicle() { Team = theTeam, Driver = driver2, Number = teamData.Driver2No, VehicleType = EVehicleType.SecondVehicle }; foreach (var kvp in designTypes) { Part part = theTeam.Parts.First(x => x.Design.PartDesignType == kvp.Value && x.MountedIn == null); if (part != null) { car2.WearingParts.Add(part); part.MountedIn = car2; } } theTeam.Vehicles.Add(car2); if (!string.IsNullOrEmpty(teamData.TestDriverName)) { Vehicle testCar = new Vehicle() { Team = theTeam, Driver = testDriver, VehicleType = EVehicleType.Muleto }; foreach (var kvp in designTypes) { Part part = theTeam.Parts.First(x => x.Design.PartDesignType == kvp.Value && x.MountedIn == null); if (part != null) { testCar.WearingParts.Add(part); part.MountedIn = testCar; } } theTeam.Vehicles.Add(testCar); } } }
private void Initialize2010ToroRosso() { FastTeamData ftd = new FastTeamData() { ManagerName = "Franz Tost", PlayerCountryName = "Italy", TeamName = "Scuderia Toro Rosso", WebTeamName = "STR-Ferrari", ShortTeamName = "STR", Driver1Name = "Sebastien Buemi", Driver1ShortName = "BUE", Driver1No = 16, Driver2Name = "Jaime Alguersuari", Driver2ShortName = "ALG", Driver2No = 17 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Scuderia Toro Rosso STR5", DesignShortName = "STR5", DesignOwnerShortName = "STR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Scuderia Toro Rosso Wings", DesignShortName = "STRW", DesignOwnerShortName = "STR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Scuderia Toro Rosso Diffuser", DesignShortName = "STRD", DesignOwnerShortName = "STR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Scuderia Toro Rosso Transmission System", DesignShortName = "STRTS", DesignOwnerShortName = "STR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Sachs Clutch System", DesignShortName = "SACHCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Sachs Suspension System", DesignShortName = "SACHSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Ferrari 056 Out-House", DesignShortName = "F056.OH", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010VirginRacing() { FastTeamData ftd = new FastTeamData() { ManagerName = "John Booth", PlayerCountryName = "UK", TeamName = "Virgin Racing", WebTeamName = "Virgin-Cosworth", ShortTeamName = "VR", Driver1Name = "Timo Glock", Driver1ShortName = "GLO", Driver1No = 24, Driver2Name = "Lucas Di Grassi", Driver2ShortName = "GRA", Driver2No = 25 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Virgin Racing VR01", DesignShortName = "VR01", DesignOwnerShortName = "VR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Virgin Racing Wings", DesignShortName = "VRW", DesignOwnerShortName = "VR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Virgin Racing Diffuser", DesignShortName = "VRD", DesignOwnerShortName = "VR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "XTRAC Transmission System", DesignShortName = "XTRACTS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "APRacing Clutch System", DesignShortName = "APRCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Penske Suspension System", DesignShortName = "PENSKSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "APRacing Brakes System", DesignShortName = "APRBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Cosworth CA2010", DesignShortName = "CA2010", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010Renault() { FastTeamData ftd = new FastTeamData() { ManagerName = "Eric Boullier", PlayerCountryName = "UK", TeamName = "Renault F1 Team", WebTeamName = "Renault", ShortTeamName = "RN", Driver1Name = "Robert Kubica", Driver1ShortName = "KUB", Driver1No = 11, Driver2Name = "Vitaly Petrov", Driver2ShortName = "PET", Driver2No = 12 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Renault R30", DesignShortName = "R30", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Renault Wings", DesignShortName = "RNW", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Renault Diffuser", DesignShortName = "RND", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Renault Transmission System", DesignShortName = "RNTS", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Renault Clutch System", DesignShortName = "RNCS", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Renault Suspension System", DesignShortName = "RNSS", DesignOwnerShortName = "RN" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "APRacing Brakes System", DesignShortName = "APRBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Renault RS27 - 2010", DesignShortName = "RS272010", DesignOwnerShortName = "RN" }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010Sauber() { FastTeamData ftd = new FastTeamData() { ManagerName = "Peter Sauber", PlayerCountryName = "Switzerland", TeamName = "BMW Sauber F1 Team", WebTeamName = "BMW Sauber-Ferrari", ShortTeamName = "SAU", Driver1Name = "Pedro de la Rosa", Driver1ShortName = "DLR", Driver1No = 22, Driver2Name = "Kamui Kobayashi", Driver2ShortName = "KOB", Driver2No = 23 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Sauber C29", DesignShortName = "SAUC29", DesignOwnerShortName = "SAU" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Sauber Wings", DesignShortName = "SAUW", DesignOwnerShortName = "SAU" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Sauber Diffuser", DesignShortName = "SAUD", DesignOwnerShortName = "SAU" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Ferrari Transmission System Out-House", DesignShortName = "SFTS.OH", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Sauber Clutch System", DesignShortName = "SAUCS", DesignOwnerShortName = "SAU" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Sachs Suspension System", DesignShortName = "SACHSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "Sauber Electronics System", DesignShortName = "SAUES", DesignOwnerShortName = "SAU" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Ferrari 056 Out-House", DesignShortName = "F056.OH", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010MercedesGP() { FastTeamData ftd = new FastTeamData() { ManagerName = "Ross Brawn", PlayerCountryName = "UK", TeamName = "Mercedes GP Petronas F1 Team", WebTeamName = "Mercedes GP", ShortTeamName = "MGP", Driver1Name = "Michael Schumacher", Driver1ShortName = "MSC", Driver1No = 3, Driver2Name = "Nico Rosberg", Driver2ShortName = "ROS", Driver2No = 4 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Mercedes GP MGPW01", DesignShortName = "MGPW01", DesignOwnerShortName = "MGP" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Mercedes GP Wings", DesignShortName = "MGPW", DesignOwnerShortName = "MGP" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Mercedes GP Diffuser", DesignShortName = "MGPD", DesignOwnerShortName = "MGP" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Mercedes GP Transmission System", DesignShortName = "MGPTS", DesignOwnerShortName = "MGP" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Mercedes GP Clutch System", DesignShortName = "MGPCS", DesignOwnerShortName = "MGP" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Sachs Suspension System", DesignShortName = "SACHSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Mercedes-Benz FO 108X", DesignShortName = "MBFO108X", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010RedBull() { FastTeamData ftd = new FastTeamData() { ManagerName = "Christian Horner", PlayerCountryName = "UK", TeamName = "Red Bull Racing", ShortTeamName = "RB", WebTeamName = "RBR-Renault", Driver1Name = "Sebastian Vettel", Driver1ShortName = "VET", Driver1No = 5, Driver2Name = "Mark Webber", Driver2ShortName = "WEB", Driver2No = 6 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Red Bull RB6", DesignShortName = "RB6", DesignOwnerShortName = "RB" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Red Bull Wings", DesignShortName = "RBW", DesignOwnerShortName = "RB" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Red Bull Diffuser", DesignShortName = "RBD", DesignOwnerShortName = "RB" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Red Bull Transmission System", DesignShortName = "RBTS", DesignOwnerShortName = "RB" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "APRacing Clutch System", DesignShortName = "APRCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Red Bull Suspension System", DesignShortName = "RBSS", DesignOwnerShortName = "RB" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Renault RS27 - 2010 Out-House", DesignShortName = "RS272010.OH", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010McLaren() { FastTeamData ftd = new FastTeamData() { ManagerName = "Martin Whitmars", PlayerCountryName = "UK", TeamName = "Vodafone McLaren Mercedes", WebTeamName = "McLaren-Mercedes", ShortTeamName = "MCL", Driver1Name = "Lewis Hamilton", Driver1No = 2, Driver1ShortName = "HAM", Driver2Name = "Jenson Button", Driver2ShortName = "BUT", Driver2No = 1 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "McLaren MP4-25", DesignShortName = "MCLMP425", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "McLaren Wings", DesignShortName = "MCLW", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "McLaren Diffuser", DesignShortName = "MCLD", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "McLaren Transmission System", DesignShortName = "MCLTS", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "McLaren Clutch System", DesignShortName = "MCLCS", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Koni Suspension System", DesignShortName = "KONISS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Akebono Brakes System", DesignShortName = "AKEBBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "McLaren Electronics System", DesignShortName = "MCLES", DesignOwnerShortName = "MCL" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Mercedes Benz FO 108X Out-House", DesignShortName = "MBFO108X.OH", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010Lotus() { FastTeamData ftd = new FastTeamData() { ManagerName = "Tony Fernandes", PlayerCountryName = "UK", TeamName = "Lotus Rancing", WebTeamName = "Lotus-Cosworth", ShortTeamName = "LR", Driver1Name = "Jarno Trulli", Driver1ShortName = "TRU", Driver1No = 18, Driver2Name = "Heikki Kovalainen", Driver2ShortName = "KOV", Driver2No = 19 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Lotus T127", DesignShortName = "LRT127", DesignOwnerShortName = "LR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Lotus Wings", DesignShortName = "LRW", DesignOwnerShortName = "LR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Lotus Diffuser", DesignShortName = "LRD", DesignOwnerShortName = "LR" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "XTRAC Transmission System", DesignShortName = "XTRACTS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "APRacing Clutch System", DesignShortName = "APRCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Penske Suspension System", DesignShortName = "PENSKSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Hitco Brakes System", DesignShortName = "HITCOBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Cosworth CA2010", DesignShortName = "CA2010", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010HRT() { FastTeamData ftd = new FastTeamData() { ManagerName = "Colin Kolles", PlayerCountryName = "Spain", TeamName = "HRT F1 Team", WebTeamName = "HRT-Cosworth", ShortTeamName = "HRT", Driver1Name = "Bruno Senna", Driver1No = 20, Driver1ShortName = "SEN", Driver2Name = "Karun Chandhok", Driver2ShortName = "CHA", Driver2No = 21, TestDriverName = "Sakon Yamamoto", TestDriverShortName = "YAM", TestDriverNo = 25 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Dallara F110", DesignShortName = "F110", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "HRT Wings", DesignShortName = "HRTW", DesignOwnerShortName = "HRT" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "HRT Diffuser", DesignShortName = "HRTD", DesignOwnerShortName = "HRT" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "XTRAC Transmission System", DesignShortName = "XTRACTS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Sachs Clutch System", DesignShortName = "SACHCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Sachs Suspension System", DesignShortName = "SACHSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Cosworth CA2010", DesignShortName = "CA2010", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010ForceIndia() { FastTeamData ftd = new FastTeamData() { ManagerName = "Vijay Mallya", PlayerCountryName = "UK", TeamName = "Force India F1 Team", WebTeamName = "Force India-Mercedes", ShortTeamName = "VJM", Driver1Name = "Adrian Sutil", Driver1ShortName = "SUT", Driver1No = 14, Driver2Name = "Vitantonio Liuzzi", Driver2ShortName = "LIU", Driver2No = 15 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Force India VJM03", DesignShortName = "VJM03", DesignOwnerShortName = "VJM" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Sauber Wings", DesignShortName = "VJMW", DesignOwnerShortName = "VJM" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Sauber Diffuser", DesignShortName = "VJMD", DesignOwnerShortName = "VJM" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "McLaren Transmission System Out-House", DesignShortName = "MCLTS.OH", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "APRacing Clutch System", DesignShortName = "APRCS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Penske Suspension System", DesignShortName = "PENSKSS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "APRacing Brakes System", DesignShortName = "APRBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "FIA Standard Electronic Control Unit", DesignShortName = "FIAES", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Mercedes Benz FO 108X Out-House", DesignShortName = "MBFO108X.OH", DesignOwnerShortName = null }); this.InitializeTeam(ftd, fpdd); }
private void Initialize2010Ferrari() { FastTeamData ftd = new FastTeamData() { ManagerName = "Stefano Domenicali", PlayerCountryName = "Italy", TeamName = "Scuderia Ferrari Marlboro", WebTeamName = "Ferrari", ShortTeamName = "SF", Driver1Name = "Fernando Alonso", Driver1ShortName = "ALO", Driver1No = 8, Driver2Name = "Felipe Massa", Driver2ShortName = "MAS", Driver2No = 7 }; List<FastPartDesignData> fpdd = new List<FastPartDesignData>(); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Chassis", DesignName = "Ferrari F10", DesignShortName = "F10", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Wings", DesignName = "Ferrari Wings", DesignShortName = "SFW", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Diffuser", DesignName = "Ferrari Diffuser", DesignShortName = "SFD", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Transmission", DesignName = "Ferrari Transmission System", DesignShortName = "SFTS", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Clutch", DesignName = "Ferrari Clutch System", DesignShortName = "SFCS", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Suspension", DesignName = "Ferrari Suspension System", DesignShortName = "SFSS", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Brakes", DesignName = "Brembo Brakes System", DesignShortName = "BREMBS", DesignOwnerShortName = null }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Electronics", DesignName = "Ferrari Electronics System", DesignShortName = "SFES", DesignOwnerShortName = "SF" }); fpdd.Add(new FastPartDesignData() { DesignTypeName = "Engine", DesignName = "Ferrari 056", DesignShortName = "F056", DesignOwnerShortName = "SF" }); this.InitializeTeam(ftd, fpdd); }