public static object GenerateStubObject(Type type, StubDataType stubDataType) { object stubObject = null; switch (stubDataType) { case StubDataType.Address1: stubObject = Randomizer.RandomAddress1(); break; case StubDataType.Address2: stubObject = Randomizer.RandomAddress2(); break; case StubDataType.Age: stubObject = Randomizer.RandomAge(); break; case StubDataType.BirthDate: stubObject = Randomizer.RandomBirthDate(); break; case StubDataType.Bool: stubObject = Randomizer.RandomBool(); break; case StubDataType.City: stubObject = Randomizer.RandomCity(); break; case StubDataType.CompanyName: stubObject = Randomizer.RandomCompanyName(); break; case StubDataType.County: stubObject = Randomizer.RandomCounty(); break; case StubDataType.Country: stubObject = Randomizer.RandomCounty(); break; case StubDataType.Character: stubObject = Randomizer.RandomChar(true); break; case StubDataType.Date: stubObject = Randomizer.RandomDate(); break; case StubDataType.FirstName: stubObject = Randomizer.RandomFirstName(); break; case StubDataType.LastName: stubObject = Randomizer.RandomLastName(); break; case StubDataType.Number: stubObject = Randomizer.RandomInt(); break; //case StubDataType.Paragraph: // stubObject = Randomizer.RandomParagraph(); // break; case StubDataType.Price: stubObject = Randomizer.RandomPrice(); break; case StubDataType.State: stubObject = Randomizer.RandomUnitedState(); break; case StubDataType.Word: stubObject = Randomizer.RandomWord(); break; case StubDataType.ZipCode: stubObject = Randomizer.RandomZipCode(); break; default: stubObject = Randomizer.RandomWord(); break; } return stubObject; }