public static IWebServiceBuilder UseWebStartup(this IWebServiceBuilder webServiceBuilder, IWebStartup webStartup) { webServiceBuilder.UseStartup(webStartup); webServiceBuilder.AddConfigure(webStartup.Configure); return(webServiceBuilder); }
public static IWebServiceBuilder UseWebStartup <TStartup>(this IWebServiceBuilder webServiceBuilder) where TStartup : class, IWebStartup { var startup = webServiceBuilder.GetStartupInstance <TStartup>(); webServiceBuilder.UseWebStartup(startup); return(webServiceBuilder); }
public void Setup() { serviceBuilder = Substitute.For<IWebServiceBuilder>(); target = new WebServiceFactory(serviceBuilder); }
public WebServiceFactory(IWebServiceBuilder builder) { this.builder = builder; }