You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AutofacContrib.NSubstitute/AutoSubstituteOptions.cs
+9-1
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
-
usingAutofac.Builder;
1
+
usingAutofac;
2
+
usingAutofac.Builder;
2
3
usingSystem;
3
4
usingSystem.Collections.Generic;
4
5
5
6
namespaceAutofacContrib.NSubstitute
6
7
{
7
8
publicclassAutoSubstituteOptions
8
9
{
10
+
privatereadonlystaticFunc<ContainerBuilder,IContainer>_defaultContainerBuilder= b =>b.Build();
11
+
9
12
internalboolAutoInjectProperties{get;set;}
10
13
11
14
/// <summary>
@@ -27,5 +30,10 @@ public class AutoSubstituteOptions
27
30
/// Gets or sets a flag indicating whether mocks should be excluded for provided values. This will automatically add values given to Provide methods to <see cref="TypesToSkipForMocking"/>.
/// Gets or sets a factory to create an <see cref="IContainer"/> given a <see cref="ContainerBuilder"/>. This defaults to simply calling <see cref="ContainerBuilder.Build()"/>.
0 commit comments