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
* Install the **GeekLearning.SceneTest** nuget package
34
+
* Install the **GeekLearning.Testavior** nuget package
32
35
```
33
36
> dotnet add package GeekLearning.Testavior
34
37
```
35
38
* Add your ASP.NET Core web project as a project reference
36
39
### Configuration
37
-
The Test environment provided by *SceneTest* is based on a **Startup Configuration Service** that let you separate the **Production** environment configuration from the **Test** environment configuration.
40
+
The Test environment provided by *Testavior* is based on a **Startup Configuration Service** that let you separate the **Production** environment configuration from the **Test** environment configuration.
38
41
This configuration service is represented by a contract **IStartupConfigurationService** which define 3 methods: *Configure, ConfigureEnvironment, ConfigureService* that have to be called within the **Startup Routine** to inject environment dependent configuration.
39
42
40
43
1 - In your **ASP.NET Core** project:
@@ -55,7 +58,7 @@ This configuration service is represented by a contract **IStartupConfigurationS
@@ -111,7 +114,7 @@ A specific *IStartupConfigurationService* is required for the **Test** environme
111
114
*Testavior* comes with a test specific *IStartupConfigurationService* implementation: **TestStartupConfigurationService** which provide a **Test Environment** full of useful features (see **Features** section).
112
115
Of course you can implement your own *Test StartupConfigurationService* (by using the onboard TestStartupConfigurationService or not).
113
116
114
-
To create a *Test Environment*, just instanciate the **TestEnvironment** class by passing it your ASP.NET Core application *Startup*, your *IStartupConfigurationService* implementation and the type of your EF Core ObjectContext
117
+
To create a *Test Environment*, just instanciate the **TestEnvironment** class by passing it your ASP.NET Core application *Startup*, your *IStartupConfigurationService* implementation, the type of your EF Core ObjectContext and the relative path to your ASP.NET Core project (required to resolve MVC views).
0 commit comments