public Address(string street, string secondStreet, string city, string stateProvince, string country, string countryCode, long zipCode, Geo geo) { this.Street = street; this.SecondStreet = secondStreet; this.City = city; this.StateProvince = stateProvince; this.Country = country; this.CountryCode = countryCode; this.ZipCode = zipCode; this.Geo = geo; }
public static void Main() { Geo geo = new Geo(121.5, 16.5); Address address = new Address("street", "second street", "city", "state provice", "country", "country code", 1120, geo); People people = new People(1, "Rodel", "Arenas", address, "*****@*****.**", "avatar/string/goeshere", 599); DataStore data = new DataStore(people); Cars = data.GetCars(); Partners = data.GetPartners(); PrintCars(); //PrintPartners(); }
private void PopulatePartners(int count) { Partner partner = null; long id = -1; for (int i = 0; i < count; i++) { id = i + 1; // TODO - Geo Geo geo = new Geo(121.0, 16.0); Address address = new Address("street", "second street", "city", "state provice", "country", "country code", 1000 + i, geo); partner = new Partner(id, "Partner Name_" + id, "Partner Description", address, "partner_" + id + "@gmail.com", random.Next(5) + 1); this.Partners.Add(id, partner); } }
private void PopulateCars(int count) { Car car = null; long id = -1; for (int i = 0; i < count; i++) { id = i + 1; int rand = random.Next(FakesUtil.Types.Length - 1); string type = FakesUtil.Types[rand]; string model = FakesUtil.Models[rand]; double idv = FakesUtil.IDVs[rand]; double mileage = FakesUtil.Mileages[rand]; // TODO - Geo Geo geo = new Geo(121.5, 16.5); Address address = new Address("street", "second street", "city", "state provice", "country", "country code", 1000 + i, geo); CarInfo info = new CarInfo(model, type, "XY1234", "Car description blah blah blah", random.Next(5) + 1); car = new Car(id, info, address, this.People, idv, mileage); this.Cars.Add(id, car); } }