private OperationFilterContext FilterContextFor(string actionFixtureName) { var fakeProvider = new FakeApiDescriptionGroupCollectionProvider(); var apiDescription = fakeProvider .Add("GET", "collection", actionFixtureName) .ApiDescriptionGroups.Items.First() .Items.First(); return new OperationFilterContext(apiDescription, null); }
private OperationFilterContext FilterContextFor( string actionFixtureName, string controllerFixtureName = "NotAnnotated") { var fakeProvider = new FakeApiDescriptionGroupCollectionProvider(); var apiDescription = fakeProvider .Add("GET", "collection", actionFixtureName, controllerFixtureName) .ApiDescriptionGroups.Items.First() .Items.First(); return new OperationFilterContext( apiDescription, new SchemaRegistry(new JsonSerializerSettings())); }