Skip to content

Commit 40a129f

Browse files
committed
Add one more method for type
1 parent 516ccaa commit 40a129f

File tree

1 file changed

+6
-0
lines changed
  • IntelliTect.TestTools.TestFramework/IntelliTect.TestTools.TestFramework

1 file changed

+6
-0
lines changed

IntelliTect.TestTools.TestFramework/IntelliTect.TestTools.TestFramework/TestBuilder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ public TestBuilder AddDependencyService<T>()
7979
return this;
8080
}
8181

82+
public TestBuilder AddDependencyService<TService,TImplementation>()
83+
{
84+
Services.AddScoped(typeof(TService), typeof(TImplementation));
85+
return this;
86+
}
87+
8288
/// <summary>
8389
/// Adds an instance of a Type to the container that is needed for a TestBlock to execute
8490
/// </summary>

0 commit comments

Comments
 (0)