Skip to content

Instantly share code, notes, and snippets.

@onionhammer
Created January 20, 2017 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save onionhammer/e8fdb1396be94dd5e02d75fdebba3f7c to your computer and use it in GitHub Desktop.
Save onionhammer/e8fdb1396be94dd5e02d75fdebba3f7c to your computer and use it in GitHub Desktop.
random
// Information
FirstName = "Tester",
LastName = lastname,
Address = choiceFrom fakeAddrs,
Email = "test@connect2capital.com",
Phone = "111-111-1111",
Website = "https://www.google.com",
NameOfBusiness = lastname + ", Inc",
NumEmployees = 1,
FinancedNeededBy = choiceEnum<FinanceTimeline>(),
// Product Matching
BusinessAddress = choiceFrom storedAddrs,
FICOScore = choicePercent [
(SingleCreditScores._700Plus, 0.6m)
(SingleCreditScores._660To699, 0.5m)
(SingleCreditScores._640To659, 0.2m)
(SingleCreditScores._620To639, 0.01m)
],
BusinessType = choiceEnum<SingleBusinessType>(),
PriorBankruptcies = choicePercent [
(SinglePriorBankruptcies.None, 0.9m)
(SinglePriorBankruptcies._1Prior, 0.1m)
],
RevenueLastYear = choicePercent[
(GrossRevenue.MoreThan5000000, 0.1m)
(GrossRevenue._100000To250000, 0.2m)
(GrossRevenue._250000To500000, 0.1m)
],
RevenueProjected = choicePercent[
(GrossRevenue.MoreThan5000000, 0.1m)
(GrossRevenue._100000To250000, 0.2m)
(GrossRevenue._250000To500000, 0.3m)
],
CollateralTypes = (if hasCollateral
then seq { 1 .. choiceInt(5, 10) }
|> Seq.map(fun _ -> choiceFrom allCollateral)
|> Seq.toArray
|> collaterals
else collaterals [||]),
UseOfProceeds = useOfProceeds (choiceFrom allUses),
Industry = industry (choiceFrom allIndustry),
HasBusinessPlan = choiceBool(),
HasCollateralToSupport = hasCollateral,
RequestedAmount = choiceDecimal(25000, 1500000),
DateOfFormation = Nullable (DateTime.Today.AddYears(-choiceInt(3, 20))),
NetProfit = Nullable (choiceDecimal(50000, 100000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment