{"id":19795031,"url":"https://github.com/fluentassertions/fluentassertions.autofac","last_synced_at":"2025-05-01T03:30:17.644Z","repository":{"id":3267381,"uuid":"47818919","full_name":"fluentassertions/fluentassertions.autofac","owner":"fluentassertions","description":"Fluent Assertions extensions for Autofac","archived":false,"fork":false,"pushed_at":"2022-02-13T13:55:29.000Z","size":429,"stargazers_count":23,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-06T08:06:26.043Z","etag":null,"topics":["autofac","dotnet-core","fluent-assertions","ioc","tdd"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fluentassertions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-11T09:59:03.000Z","updated_at":"2024-02-25T02:25:59.000Z","dependencies_parsed_at":"2022-08-06T13:16:39.381Z","dependency_job_id":null,"html_url":"https://github.com/fluentassertions/fluentassertions.autofac","commit_stats":null,"previous_names":["awesome-inc/autofac.testinghelpers"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentassertions%2Ffluentassertions.autofac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentassertions%2Ffluentassertions.autofac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentassertions%2Ffluentassertions.autofac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluentassertions%2Ffluentassertions.autofac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluentassertions","download_url":"https://codeload.github.com/fluentassertions/fluentassertions.autofac/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251817793,"owners_count":21648805,"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":["autofac","dotnet-core","fluent-assertions","ioc","tdd"],"created_at":"2024-11-12T07:15:16.209Z","updated_at":"2025-05-01T03:30:17.382Z","avatar_url":"https://github.com/fluentassertions.png","language":"C#","readme":"# FluentAssertions.Autofac\r\n\r\n[![Build status](https://github.com/fluentassertions/fluentassertions.autofac/actions/workflows/build.yml/badge.svg)](https://github.com/fluentassertions/fluentassertions.autofac/actions/workflows/build.yml)\r\n\r\n[![NuGet](https://img.shields.io/nuget/v/FluentAssertions.Autofac.svg?style=flat-square)](https://www.nuget.org/packages/FluentAssertions.Autofac/)\r\n[![NuGet](https://img.shields.io/nuget/dt/FluentAssertions.Autofac.svg?style=flat-square)](https://www.nuget.org/packages/FluentAssertions.Autofac/)\r\n\r\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=fluentassertions.FluentAssertions.Autofac\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=fluentassertions.FluentAssertions.Autofac)\r\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=fluentassertions.FluentAssertions.Autofac\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=fluentassertions.FluentAssertions.Autofac)\r\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=fluentassertions.FluentAssertions.Autofac\u0026metric=coverage)](https://sonarcloud.io/summary/new_code?id=fluentassertions.FluentAssertions.Autofac)\r\n\r\nThis repository contains the [Fluent Assertions](http://fluentassertions.com/) extensions\r\nfor [Autofac](https://autofac.org/). It is maintained by [@mkoertgen](https://github.com/mkoertgen).\r\n\r\n- See [www.fluentassertions.com](http://www.fluentassertions.com/) for more information about the main library.\r\n\r\n## Why?\r\n\r\nIn general, the more you apply [Dependency Injection (DI)](http://martinfowler.com/articles/injection.html) the easier\r\nbecomes unit testing and [Test-driven Development (TDD)](https://en.wikipedia.org/wiki/Test-driven_development).\r\n\r\nThis is because the complexity of constructing all dependencies is shifted to the so\r\ncalled [Composition Root](http://blog.ploeh.dk/2011/07/28/CompositionRoot/), i.e. the place where you \"wire up\" and\r\nconfigure all your dependencies. Undoubtedly, the best way to do this is by using\r\nsome [Inversion of Control (IoC)](http://martinfowler.com/articles/injection.html) container.\r\n\r\nWith an application growing in complexity, there is also growing need to organize and test the IoC configuration.\r\n\r\n## Quickstart\r\n\r\n### Usage\r\n\r\nInstall the NuGet package [FluentAssertions.Autofac](https://www.nuget.org/packages/FluentAssertions.Autofac/) and start writing tests for your Autofac configuration.\r\n\r\n```csharp\r\ncontainer.Should().Have().Registered\u003cSuperCoolService\u003e()\r\n    .AsSelf()\r\n    .As\u003cICoolService\u003e()\r\n    .Singleton();\r\n```\r\n\r\nFind more examples in the [documentation](_docs/index.md) or the [tests](./FluentAssertions.Autofac.Tests/).\r\n\r\n### How to build\r\n\r\nClone and build using Rider, Code, Visual Studio, ... or the command line using [nuke.build](https://nuke.build/).\r\n\r\n### Links\r\n\r\n- [Why?](_docs/why.md)\r\n- [Usage](_docs/usage.md)\r\n- [Contributing](https://github.com/fluentassertions/fluentAssertions.autofac/blob/master/CONTRIBUTING.md)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluentassertions%2Ffluentassertions.autofac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluentassertions%2Ffluentassertions.autofac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluentassertions%2Ffluentassertions.autofac/lists"}