static IFeatureCollection NewFeatureCollection() { var stub = new StubFeatures(); var features = new FeatureCollection(); features[typeof(IHttpRequestFeature)] = stub; features[typeof(IHttpResponseFeature)] = stub; return features; }
public static IFeatureCollection NewFeatureCollection() { var stub = new StubFeatures(); var features = new FeatureCollection(); features.Set <IHttpRequestFeature>(stub); features.Set <IHttpResponseFeature>(stub); return(features); }
static IFeatureCollection NewFeatureCollection() { var stub = new StubFeatures(); var features = new FeatureCollection(); features[typeof(IHttpRequestFeature)] = stub; features[typeof(IHttpResponseFeature)] = stub; return(features); }
static IFeatureCollection NewFeatureCollection() { var stub = new StubFeatures(); var features = new FeatureCollection(); features.Set <IHttpRequestFeature>(stub); features.Set <IHttpResponseFeature>(stub); features.Set <IServerAddressesFeature>(new ServerAddressesFeature()); return(features); }