private SwaggerGenerator Subject(
            Action <OrleansApiDescriptionGroupCollectionProvider> setupApis = null,
            Action <SwaggerGeneratorSettings> configure = null)
        {
            var apiDescriptionsProvider = new OrleansApiDescriptionGroupCollectionProvider(Options.Create <OrleansSwaggerGenOptions>(new OrleansSwaggerGenOptions()
            {
                GrainAssembly = typeof(IGrainTestService).Assembly
            }));

            setupApis?.Invoke(apiDescriptionsProvider);

            var options = new SwaggerGeneratorSettings();

            options.SwaggerDocs.Add("v1", new Info {
                Title = "API", Version = "v1"
            });

            configure?.Invoke(options);

            return(new SwaggerGenerator(
                       apiDescriptionsProvider,
                       new SchemaRegistryFactory(new JsonSerializerSettings(), new SchemaRegistrySettings()),
                       options
                       ));
        }
        public void GetApiDescription()
        {
            var apiDescriptionsProvider = new OrleansApiDescriptionGroupCollectionProvider(Options.Create <OrleansSwaggerGenOptions>(new OrleansSwaggerGenOptions()
            {
                GrainAssembly = typeof(IGrainTestService).Assembly
            }));
            var gr = apiDescriptionsProvider.ApiDescriptionGroups;

            Assert.NotNull(gr);
        }