We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4367e1 commit 79c1a6cCopy full SHA for 79c1a6c
src/FluentAssertions.Ioc.Ninject.SampleTests/IocTests.cs
@@ -34,6 +34,26 @@ public void Providers_can_be_resolved_with_at_least_one_instance()
34
kernel.Should().Resolve(interfaces).WithAtLeastOneInstance();
35
}
36
37
+ [Test]
38
+ public void SampleService_can_be_resolved_with_a_single_instance()
39
+ {
40
+ // Arrange
41
+ var kernel = GetKernel();
42
+
43
+ // Assert
44
+ kernel.Should().Resolve<ISampleService>().WithSingleInstance();
45
+ }
46
47
48
+ public void Provider_can_be_resolved_with_at_least_one_instance()
49
50
51
52
53
54
+ kernel.Should().Resolve<ISomeProvider>().WithAtLeastOneInstance();
55
56
57
[Test]
58
public void SampleService_resolves_to_expected_implementation()
59
{
0 commit comments