{"id":13458161,"url":"https://github.com/JonPSmith/EfCore.TestSupport","last_synced_at":"2025-03-24T15:30:47.112Z","repository":{"id":38084359,"uuid":"99205107","full_name":"JonPSmith/EfCore.TestSupport","owner":"JonPSmith","description":"Tools for helping in unit testing applications that use Entity Framework Core","archived":false,"fork":false,"pushed_at":"2024-12-21T17:45:21.000Z","size":1452,"stargazers_count":356,"open_issues_count":0,"forks_count":56,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-12-21T18:31:20.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.thereformedprogrammer.net/new-features-for-unit-testing-your-entity-framework-core-5-code/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonPSmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-08-03T07:41:23.000Z","updated_at":"2024-12-21T17:45:25.000Z","dependencies_parsed_at":"2022-08-08T23:00:50.798Z","dependency_job_id":"e9674f2a-9b49-47b7-885e-9e4a08adf6a8","html_url":"https://github.com/JonPSmith/EfCore.TestSupport","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonPSmith%2FEfCore.TestSupport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonPSmith%2FEfCore.TestSupport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonPSmith%2FEfCore.TestSupport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonPSmith%2FEfCore.TestSupport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonPSmith","download_url":"https://codeload.github.com/JonPSmith/EfCore.TestSupport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245297880,"owners_count":20592490,"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-07-31T09:00:45.848Z","updated_at":"2025-03-24T15:30:47.087Z","avatar_url":"https://github.com/JonPSmith.png","language":"C#","funding_links":[],"categories":["C\\#","Libraries"],"sub_categories":["Testing"],"readme":"# EfCore.TestSupport\n\nThis NuGet package containing methods to help test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access using SQL Server, PostgreSQL, Cosmos DB, and a generic in-memory SQLite approach which works with every EF Core database provider (with limitations). This readme provides links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki). Also see [Release Notes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for information on changes.\n\nThe EfCore.TestSupport library is available on [NuGet as EfCore.TestSupport](https://www.nuget.org/packages/EfCore.TestSupport/) and is an open-source library under the MIT license. See [ReleaseNotes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for details of the changes in each vesion.\n\n## List of versions and which .NET framework they support\n\nSince .NET 8 this library only supports one .NET. This change makes it easier to update to the next .NET release.\n\n- Version 9.?.? supports NET 9 only\n- Version 8.?.? supports NET 8 only \n- Version 6.?.? supports NET 6, 7 and 8\n- Version 5.2.? supports NET 5, 6 and 7\n\n_There are older versions of the EfCore.TestSupport library, but .NET lower than .NET 5 are not supported by Microsoft._\n\n## Documentation\n\nThe NuGet package [EfCore.TestSupport](https://www.nuget.org/packages/EfCore.TestSupport/) containing methods to help you unit test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access. This readme defines the various groups, with links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki).\n\n*NOTE: The techniques are explained in much more details in chapter 17 of the book [Entity Framework in Action, second edition](https://bit.ly/EfCoreBookEd2).*\n\nHere is an image covering just a few of the methods available in this library.  \n\n![Examples of library methods in use](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/UnitTestExample.png)\n\nThe various groups of tools are:\n\n1. Helpers to create an in-memory Sqlite database for unit testing.  \nSee [Sqlite in memory test database](https://github.com/JonPSmith/EfCore.TestSupport/wiki/1.-Sqlite-in-memory-test-database).\n2. Helpers to create connection strings with a unique database name.  \nSee [Creating connection strings](https://github.com/JonPSmith/EfCore.TestSupport/wiki/3.-Creating-connection-strings).\n3. Helpers for creating unique SQL Server databases for unit testing.  \nSee [Create SQL Server databases](https://github.com/JonPSmith/EfCore.TestSupport/wiki/4.-Create-SQL-Server-databases).\n4. Helpers to create Cosmos DB databases linked to Azure Cosmos DB Emulator.  \nSee [Create Cosmos DB options](https://github.com/JonPSmith/EfCore.TestSupport/wiki/Create-Cosmos-DB-options).\n6. Helper for wiping all data and resetting the schema a SQL Server database.  \nSee [Quickly wipe and reset schema on SQL Server](#).\n7. Various tools for getting test data, or file paths to test data.   \nSee [Test Data tools](https://github.com/JonPSmith/EfCore.TestSupport/wiki/6.-Test-Data-tools).\n8. A tool for applying a SQL script file to a EF Core database.  \nSee [Run SQL Script](https://github.com/JonPSmith/EfCore.TestSupport/wiki/7.-Run-SQL-Script).\n9. Tools for capturing EF Core logging.  \nSee [Capture EF Core logging](https://github.com/JonPSmith/EfCore.TestSupport/wiki/8.-Capture-EF-Core-logging).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJonPSmith%2FEfCore.TestSupport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJonPSmith%2FEfCore.TestSupport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJonPSmith%2FEfCore.TestSupport/lists"}