{"id":22801092,"url":"https://github.com/iowacomputergurus/netcore.utilities.unittesting","last_synced_at":"2025-04-19T18:23:01.428Z","repository":{"id":34033575,"uuid":"166069741","full_name":"IowaComputerGurus/netcore.utilities.unittesting","owner":"IowaComputerGurus","description":"This library provides helpful items to speed the development of unit tests across all .NET Core project types.  We will update this library regularly with helpful base classes/implementations.","archived":false,"fork":false,"pushed_at":"2024-11-25T22:17:14.000Z","size":163,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2024-12-02T13:41:16.790Z","etag":null,"topics":["aspnet-core","hacktoberfest","net-core","unit-testing","utilities"],"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/IowaComputerGurus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"mitchelsellers"}},"created_at":"2019-01-16T16:09:14.000Z","updated_at":"2024-11-19T04:05:41.000Z","dependencies_parsed_at":"2024-11-19T05:29:39.431Z","dependency_job_id":null,"html_url":"https://github.com/IowaComputerGurus/netcore.utilities.unittesting","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Fnetcore.utilities.unittesting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Fnetcore.utilities.unittesting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Fnetcore.utilities.unittesting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IowaComputerGurus%2Fnetcore.utilities.unittesting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IowaComputerGurus","download_url":"https://codeload.github.com/IowaComputerGurus/netcore.utilities.unittesting/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229352424,"owners_count":18059492,"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":["aspnet-core","hacktoberfest","net-core","unit-testing","utilities"],"created_at":"2024-12-12T08:08:57.936Z","updated_at":"2024-12-12T08:08:58.462Z","avatar_url":"https://github.com/IowaComputerGurus.png","language":"C#","funding_links":["https://github.com/sponsors/mitchelsellers"],"categories":[],"sub_categories":[],"readme":"# netcore.utilities.unittesting ![](https://img.shields.io/github/license/iowacomputergurus/netcore.utilities.unittesting.svg)\n\n![Build Status](https://github.com/IowaComputerGurus/netcore.utilities.unittesting/actions/workflows/ci-build.yml/badge.svg)\n\n![](https://img.shields.io/nuget/v/icg.netcore.utilities.unittesting.svg) ![](https://img.shields.io/nuget/dt/icg.netcore.utilities.unittesting.svg)\n\nThis library provides helpful items to speed the development of unit tests across all .NET Core project types.  We will update this library regularly with helpful base classes/implementations.\n\n## Using ICG.NetCore.Utilities.UnitTesting\n\n### Installation\n\nInstall from NuGet\n\n``` powershell\nInstall-Package ICG.NetCore.Utilities.UnitTesting\n```\n### Register Dependencies (If using Dependency Injection)\n\nInside of of your project's Startup.cs within the RegisterServices method add this line of code.\n\n``` csharp\nservices.UseIcgUnitTestUtilities();\n```\n\n### Included Features\n\n| Object | Purpose |\n| ---- | --- |\n| AbstractDataServiceTest | Provides an abstract class that will build the proper options for an EF In Memory Database Provider|\n| AbstractModelTest | Provides an abstract class that contains helpful items for writing unit tests for model objects | \n| SampleDataGenerator | Provides a utility for generating sample strings, dates, and the like for building unit tests, can be used with DI or standard creation |\n| XUnitLogger | Provides an implementation of `ILogger` that writes to xUnit's [`ITestOutputHelper`](https://xunit.net/docs/capturing-output) |\n| DatabaseFixture | A test fixture with helper methods for setup and verification that allows tests to be run against a SQL database. Uses [Respawn](https://github.com/jbogard/Respawn) to reset the database between test runs |\nDetailed information can be found in the XML Comment documentation for the objects, we are working to add to this document as well.\n\n## Related Projects\n\nICG has a number of other related projects as well\n\n* [AspNetCore.Utilities](https://www.github.com/iowacomputergurus/aspnetcore.utilities)\n* [NetCore.Utilities.Spreadsheet](https://www.github.com/iowacomputergurus/netcore.utilities.spreadsheet)\n* [NetCore.Utilities.Email](https://www.github.com/iowacomputergurus/netcore.utilities.email)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowacomputergurus%2Fnetcore.utilities.unittesting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiowacomputergurus%2Fnetcore.utilities.unittesting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiowacomputergurus%2Fnetcore.utilities.unittesting/lists"}