protected static void StartNuServeOn(string packageListUri, string packagePushUri) { StopNuServe(); endpointSettings = new EndpointSettings() { PackageListUri = packageListUri, PackageManagerUri = packagePushUri }; var log = Substitute.For<ILog>(); server = new SelfHostingPackageServer(endpointSettings, log); server.Start(); }
/// <summary> /// Initializes a new instance of the NuGetPackageServer class. /// </summary> /// <param name="settings"></param> public SelfHostingPackageServer(EndpointSettings settings, ILog log) { this.settings = settings; this.log = log; }