{"id":18031989,"url":"https://github.com/anuviswan/mockcollection","last_synced_at":"2025-04-04T21:44:36.302Z","repository":{"id":115005921,"uuid":"161824081","full_name":"anuviswan/MockCollection","owner":"anuviswan","description":"Randomize.Net - Generate Random Instances/Collections of any type \u003cT\u003e","archived":false,"fork":false,"pushed_at":"2019-08-17T08:04:39.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T00:41:19.778Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anuviswan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-14T18:16:30.000Z","updated_at":"2019-08-17T08:04:40.000Z","dependencies_parsed_at":"2023-06-09T00:45:14.157Z","dependency_job_id":null,"html_url":"https://github.com/anuviswan/MockCollection","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuviswan%2FMockCollection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuviswan%2FMockCollection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuviswan%2FMockCollection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anuviswan%2FMockCollection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anuviswan","download_url":"https://codeload.github.com/anuviswan/MockCollection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256090,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-30T10:11:56.590Z","updated_at":"2025-04-04T21:44:36.283Z","avatar_url":"https://github.com/anuviswan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Randomize.Net**\n\nRandomize.Net provides an easy and lightweight extensions for **System.Random** for creating random instances of any type, with generated random value. The whole idea behind Randomize.Net is extend the much familiar System.Random syntax for generating random collections rather than reinventing the wheel with a new syntax.\n\nFor Example,\n\n```csharp\nvar _random = new Random();_\nvar randomString = _random.GenerateInstance\u003cstring\u003e(); \nvar randomInt32 = _random.GenerateInstance\u003cint32\u003e();\n```\n\nRandomize.Net works with User Defined Types as well, including nested User Defined Types.\n\n```csharp\npublic class SampleClass\n{\n    public string StringProperty{get;set;}\n    public int Int32Property {get;set;}\n    public char CharProperty {get;set;}\n}\n\npublic class AnotherSampleClass\n{\n    public SampleClass SampleClassProperty{get;set;}\n    public string StringProperty{get;set;}\n}\n\nvar sampleClass = _random.GenerateInstance\u003cSampleClass\u003e();\nvar anotherSampleClass = _random.GenerateInstance\u003cAnotherSampleClass\u003e();\n```\n\n*Randomize.Net* also supports generation of Collections.\n\n```csharp\n// Method Signature\npublic static IEnumerable\u003cT\u003e GenerateCollection\u003cT\u003e(this Random source,int count = 1)\n\n//Example\nvar sampleClassCollection = _random.GenerateCollection\u003cSampleClass\u003e(10);\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuviswan%2Fmockcollection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanuviswan%2Fmockcollection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanuviswan%2Fmockcollection/lists"}