{"id":23011494,"url":"https://github.com/mersocarlin/ddd-validation","last_synced_at":"2025-08-14T06:31:58.515Z","repository":{"id":28303652,"uuid":"31816311","full_name":"mersocarlin/ddd-validation","owner":"mersocarlin","description":"DDD Library for validate your entities according Vaughn Vernon using C# / ASP.NET","archived":false,"fork":false,"pushed_at":"2015-11-03T23:32:37.000Z","size":156,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T13:11:24.839Z","etag":null,"topics":["aspnet","c-sharp","ddd-validation"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mersocarlin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-07T15:31:22.000Z","updated_at":"2023-05-21T19:29:55.000Z","dependencies_parsed_at":"2022-09-02T21:10:36.879Z","dependency_job_id":null,"html_url":"https://github.com/mersocarlin/ddd-validation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mersocarlin/ddd-validation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mersocarlin%2Fddd-validation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mersocarlin%2Fddd-validation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mersocarlin%2Fddd-validation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mersocarlin%2Fddd-validation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mersocarlin","download_url":"https://codeload.github.com/mersocarlin/ddd-validation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mersocarlin%2Fddd-validation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270377433,"owners_count":24573409,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aspnet","c-sharp","ddd-validation"],"created_at":"2024-12-15T10:09:08.997Z","updated_at":"2025-08-14T06:31:57.940Z","avatar_url":"https://github.com/mersocarlin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mersocarlin/ddd-validation.svg?branch=master)](https://travis-ci.org/mersocarlin/ddd-validation)\n\n# ddd-validation\n\nDDD Library for validate your entities according Vaughn Vernon using C# / ASP.NET.\n\n## Install via nuget package\n\n```bash\nInstall-Package DDDValidation\n```\n\n## Setup your class\n\n```c#\nusing DDDValidation.Validation;\n\nnamespace ExampleOfUse\n{\n\tpublic class DDDValidationClass\n\t{\n\t    public DDDValidationClass()\n\t    {\n\n\t    }\n\n\t    public string EqualsProperty { get; set; }\n\t    public string LengthProperty { get; set; }\n\t    public string NullProperty { get; set; }\n\t    public string EmailProperty { get; set; }\n\n\t    public void Validate()\n\t    {\n\t        AssertionConcern.AssertArgumentEquals(this.EqualsProperty, \"ddd-validation\", \"The property value for EqualsProperty must be equals to 'ddd-validation'\");\n\t        AssertionConcern.AssertArgumentLength(this.LengthProperty, 30, \"The property value for LengthProperty has a maxlength of 30\");\n\t        AssertionConcern.AssertArgumentNotNull(this.NullProperty, \"The value for NullProperty must be a not null value\");\n\t        EmailAssertionConcern.AssertEmailFormat(this.EmailProperty, \"The property value for EmailProperty must be a valid email address\");\n\t    }\n\t}\n}\n```\n\n## Example of usage\n\n```c#\npublic void SaveInfo(DDDValidationClass validationClass)\n{\n    try\n    {\n        validationClass.Validate();\n        //continue implementation\n    }\n    catch (Exception ex)\n    {\n        Console.WriteLine(ex.Message);\n        throw ex;\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmersocarlin%2Fddd-validation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmersocarlin%2Fddd-validation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmersocarlin%2Fddd-validation/lists"}