{"id":24358463,"url":"https://github.com/thomasgalliker/mauimocks","last_synced_at":"2025-07-05T05:06:58.246Z","repository":{"id":234664623,"uuid":"789341383","full_name":"thomasgalliker/MauiMocks","owner":"thomasgalliker","description":"Library for running Microsoft.Maui inside of unit tests","archived":false,"fork":false,"pushed_at":"2025-04-29T15:17:12.000Z","size":80,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-06-20T01:49:04.259Z","etag":null,"topics":["maui","mauimocks","mocks","testing","unittest"],"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/thomasgalliker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null},"funding":{"patreon":"user?u=21232884"}},"created_at":"2024-04-20T09:11:47.000Z","updated_at":"2025-04-29T10:06:10.000Z","dependencies_parsed_at":"2025-04-10T05:41:00.860Z","dependency_job_id":"ca244633-a2e1-444e-b4d6-f5b416fa107a","html_url":"https://github.com/thomasgalliker/MauiMocks","commit_stats":null,"previous_names":["thomasgalliker/mauimocks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thomasgalliker/MauiMocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasgalliker%2FMauiMocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasgalliker%2FMauiMocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasgalliker%2FMauiMocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasgalliker%2FMauiMocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasgalliker","download_url":"https://codeload.github.com/thomasgalliker/MauiMocks/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasgalliker%2FMauiMocks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261029787,"owners_count":23099817,"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":["maui","mauimocks","mocks","testing","unittest"],"created_at":"2025-01-18T20:11:19.946Z","updated_at":"2025-06-20T22:34:26.140Z","avatar_url":"https://github.com/thomasgalliker.png","language":"C#","funding_links":["https://patreon.com/user?u=21232884"],"categories":[],"sub_categories":[],"readme":"# MauiMocks\n\nMauiMocks facilitates service mocking in unit tests for .NET MAUI test projects.\n\n### Download and Installation\nThis library is available on NuGet: https://www.nuget.org/packages/Mocks.Maui\nTo install MauiMocks via NuGet package manager console, use the following command:\n\n```bash\nPM\u003e Install-Package Mocks.Maui\n```\n\nThis library is compatible with any .NET MAUI test project running on .NET 8 and newer.\n\n### API Usage\nWhile many UI classes in a .NET MAUI project are readily usable in unit tests, certain classes rely on services registered in the DI container or initialized during app startup.\nMauiMocks aids in mocking all essential services from .NET MAUI, enabling unit test execution without the need to fully deploy the app on a device/simulator.\n\n#### Initializing MauiMocks\nIn the setup section of your unit test, execute the following code to prepare .NET MAUI for testing:\n\n```csharp\nMauiMocks.Init();\n```\n\nEnsure that unit tests utilizing this code are not executed concurrently, as this may lead to unpredictable outcomes.\n\n### Issues \u0026 Inquiries\nIf you encounter a bug or wish to propose a new feature, please feel free to do so by opening a new issue [here](https://github.com/thomasgalliker/MauiMocks/issues).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasgalliker%2Fmauimocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasgalliker%2Fmauimocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasgalliker%2Fmauimocks/lists"}