-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-554' of https://github.com/simpleinjector/Simpl…
…eInjector into v4.5.0-beta1 # Conflicts: # src/SimpleInjector/Container.Registration.CollectionRegistrator.cs
- Loading branch information
Showing
20 changed files
with
905 additions
and
202 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...SimpleInjector.Tests.Unit/Diagnostics/Helpers/ContainerCollectionRegistratorExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace SimpleInjector.Tests.Unit.Diagnostics | ||
{ | ||
using SimpleInjector.Diagnostics; | ||
|
||
public static class ContainerCollectionRegistratorExtensions | ||
{ | ||
public static void AppendCollection<TService, TImplementation>( | ||
this Container container, | ||
Lifestyle lifestyle, | ||
DiagnosticType suppression) | ||
where TImplementation : class, TService | ||
{ | ||
var reg = lifestyle.CreateRegistration<TImplementation>(container); | ||
reg.SuppressDiagnosticWarning(suppression, "For testing"); | ||
|
||
container.Collection.Append(typeof(TService), reg); | ||
} | ||
} | ||
} |
395 changes: 395 additions & 0 deletions
395
...Tests.Unit/Diagnostics/LifestyleMismatchDueToIterationOfStreamsDuringConstructionTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.