public void SetUp()
 {
     _discoverer = new ResourceMetadataDiscoverer(new OperationGrouperByUri());
     _model = new ResourceModel();
     _model.Uris.Add(new UriModel { Name = "Test", Uri = "/test-with-attributes" });
     _model.Handlers.Add(new HandlerModel(new ReflectionBasedType(new ReflectionBasedTypeSystem(), typeof(TestHandler))));
     AddHandlerResourceType(typeof (OperationResult));
 }
        protected IEnumerable<OperationMetadata> Operations()
        {
            var apiResourceRegistrations = SelectRegistrationsThatArentSwaggerRoutes(SwaggerGenerator.Configuration.MetaModelRepository);

            var discoverer = new ResourceMetadataDiscoverer(SwaggerGenerator.Configuration.Grouper);
            var operations = apiResourceRegistrations.SelectMany(discoverer.Discover);

            return operations;
        }