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);
        }
Example #3
0
        public void Setup()
        {
            serviceBuilder = Substitute.For<IWebServiceBuilder>();

            target = new WebServiceFactory(serviceBuilder);
        }
Example #4
0
 public WebServiceFactory(IWebServiceBuilder builder)
 {
     this.builder = builder;
 }