We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe02fd5 commit 1cb3f4fCopy full SHA for 1cb3f4f
1 file changed
src/CasCap.Api.Knx.Tests/TestBase.cs
@@ -1,3 +1,6 @@
1
+using Microsoft.Extensions.Hosting;
2
+using Microsoft.Extensions.Hosting.Internal;
3
+
4
namespace CasCap.Tests;
5
6
/// <summary>
@@ -35,6 +38,9 @@ protected TestBase(ITestOutputHelper output)
35
38
services.AddKnx(configuration);
36
39
}
37
40
41
+ IHostEnvironment env = new HostingEnvironment { EnvironmentName = Environments.Development };
42
+ services.AddSingleton(env);
43
44
//assign services to be tested
45
_serviceProvider = services.BuildServiceProvider();
46
_knxGroupAddressLookupSvc = _serviceProvider.GetRequiredService<KnxGroupAddressLookupService>();
0 commit comments