public ApiFactory(string virtualPath, XmlCommentDocumentationProvider docProvider, ParameterFactory parameterFactory, ModelFactory modelFactory, ICollection<ApiDescription> apiDescriptions) { _apiDescriptions = apiDescriptions; _modelFactory = modelFactory; _parameterFactory = parameterFactory; _appVirtualPath = virtualPath.TrimEnd('/'); _docProvider = docProvider; }
public ApiFactory() { _appVirtualPath = HttpRuntime.AppDomainAppVirtualPath.TrimEnd('/'); ; _apiDescriptions = GlobalConfiguration.Configuration.Services.GetApiExplorer().ApiDescriptions; _parameterFactory = new ParameterFactory(); _docProvider = (XmlCommentDocumentationProvider)GlobalConfiguration.Configuration.Services.GetService((typeof(IDocumentationProvider))); _modelFactory = new ModelFactory(_docProvider); }
public ApiFactory(string virtualPath, XmlCommentDocumentationProvider docProvider, ParameterFactory parameterFactory, ModelFactory modelFactory, ICollection <ApiDescription> apiDescriptions) { _apiDescriptions = apiDescriptions; _modelFactory = modelFactory; _parameterFactory = parameterFactory; _appVirtualPath = virtualPath.TrimEnd('/'); _docProvider = docProvider; }
public void Setup() { var docProvider = new XmlCommentDocumentationProvider(TestHelper.XML_DOC_PATH); _factory = new ParameterFactory(docProvider); }