public void Init()
 {
     var pathToFile = GetXmlPath();
     var reflector = new ApiReflector(typeof(MockApiController), typeof(ApiController), pathToFile);
     endpoints = reflector.CollectEndpoints();
 }
Esempio n. 2
0
 /// <summary>
 /// 
 /// </summary>
 public ExplrController()
 {
     var path = HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml");
     reflector = new ApiReflector(typeof(ExplrController), typeof(ApiController), path);
 }
Esempio n. 3
0
 public void Init()
 {
     var pathToFile = XmlLocator.GetPath();
     _ApiReflector = new ApiReflector(typeof(MockApiController), typeof(ApiController), pathToFile);
 }