示例#1
0
        protected IntegrationTestCore(string url, Type startup, Action <IServiceCollection> configureServices)
        {
            this._server = ServerFactory.Server(startup, configureServices);

            this.Context = this.Server.Host.Services.GetService(typeof(LanreContext)) as LanreContext;
            this._client = this.Server.CreateClient();
            this._url    = url;
        }
示例#2
0
 protected IntegrationTestBase(string url, Action <IServiceCollection> configureServices)
 {
     Server = ServerFactory.Server(configureServices);
     Client = Server.CreateClient();
     Url    = url;
 }