mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#20692: Ignoring AppRestart in specflow tests
This commit is contained in:
@@ -40,6 +40,8 @@ namespace Orchard.Specs.Hosting.Orchard.Web {
|
||||
builder.Register(ctx => RouteTable.Routes).SingleInstance();
|
||||
builder.Register(ctx => ModelBinders.Binders).SingleInstance();
|
||||
builder.Register(ctx => ViewEngines.Engines).SingleInstance();
|
||||
|
||||
builder.RegisterType<SpecHostEnvironment>().As<IHostEnvironment>();
|
||||
}
|
||||
|
||||
public static void ReloadExtensions() {
|
||||
|
12
src/Orchard.Specs/Hosting/SpecHostEnvironment.cs
Normal file
12
src/Orchard.Specs/Hosting/SpecHostEnvironment.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Orchard.Environment;
|
||||
|
||||
namespace Orchard.Specs.Hosting {
|
||||
public class SpecHostEnvironment : HostEnvironment {
|
||||
public SpecHostEnvironment() {
|
||||
}
|
||||
|
||||
public override void RestartAppDomain() {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
}
|
@@ -171,6 +171,7 @@
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<Compile Include="Hosting\SpecHostEnvironment.cs" />
|
||||
<Compile Include="Input.feature.cs">
|
||||
<DependentUpon>Input.feature</DependentUpon>
|
||||
<AutoGen>True</AutoGen>
|
||||
|
Reference in New Issue
Block a user