public MatchAllController(IODataModelSettingsProvider oDataModelSettingsProvider , IODataFilterManager oDataFilterManager , IODataRequestHelper oDataRequestHelper , IGenericEntityRepository genericEntityRepository) { _oDataModelSettingsProvider = oDataModelSettingsProvider; _oDataFilterManager = oDataFilterManager; _oDataRequestHelper = oDataRequestHelper; _genericEntityRepository = genericEntityRepository; }
protected void BeforeEachBenchmark(int recordCount) { var collection = new ServiceCollection(); collection.AddOData(); collection.AddODataQueryFilter(); _provider = collection.BuildServiceProvider(); var routeBuilder = new RouteBuilder(Mock.Of <IApplicationBuilder>(x => x.ApplicationServices == _provider)); routeBuilder.EnableDependencyInjection(); _oDataRequestHelper = new ODataRequestHelper(); _edmEntityTypeSettings = GetEdmEntityTypeSettings(); _httpContext = new DefaultHttpContext(); _genericEntityRepository = new GenericEntityRepository(recordCount); _oDataRequestHelper.GetEdmModel(_httpContext.Request, _edmEntityTypeSettings, EdmNamespaceName); }