{"id":22065771,"url":"https://github.com/karenpayneoregon/entity-framework6-mocking","last_synced_at":"2025-03-23T18:17:23.970Z","repository":{"id":110840581,"uuid":"391975023","full_name":"karenpayneoregon/entity-framework6-mocking","owner":"karenpayneoregon","description":"Entity Framework 6 example to unit test and restore data to original state.","archived":false,"fork":false,"pushed_at":"2022-12-27T15:01:33.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T00:29:40.375Z","etag":null,"topics":["csharp","entity-framework","unit-testing"],"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/karenpayneoregon.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":"2021-08-02T14:14:26.000Z","updated_at":"2024-06-11T18:40:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"2983a615-0d04-48bc-86da-b7b296caad3a","html_url":"https://github.com/karenpayneoregon/entity-framework6-mocking","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/karenpayneoregon%2Fentity-framework6-mocking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fentity-framework6-mocking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fentity-framework6-mocking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2Fentity-framework6-mocking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/entity-framework6-mocking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144978,"owners_count":20568056,"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":["csharp","entity-framework","unit-testing"],"created_at":"2024-11-30T19:21:51.048Z","updated_at":"2025-03-23T18:17:23.948Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n\nAlternate method of testing w/o touching the database for `Entity Framework 6`.\n\nhttps://github.com/RichardSilveira/EntityFramework.MoqHelper\nInstall-Package EntityFramework.MoqHelper\n\nArticle [Testing-with-mock-on-Entity-Framework](https://www.codeproject.com/Tips/1045590/Testing-with-mock-on-Entity-Framework) \n\nAnother [approach](https://blog.goyello.com/2016/07/14/save-time-mocking-use-your-real-entity-framework-dbcontext-in-unit-tests/) (it's shown in C# but is easy to translate)\n\n# Data scripts\n\nRun script.sql in the script folder before running any test.\n\n# Note\n\nThis is done using a .edmx method to work with Entity Framework, will also work with code first approach.\n\n# TechNet article\n\n[Entity Framework unit testing with mocked data and auto cleanup of data](https://social.technet.microsoft.com/wiki/contents/articles/51477.entity-framework-unit-testing-with-mocked-data-and-auto-cleanup-of-data.aspx)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fentity-framework6-mocking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fentity-framework6-mocking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fentity-framework6-mocking/lists"}