public static ServiceFactoryHelper Create() { var serviceStub = new CustomerServiceStub(); var customerServiceFactory = new DemoProxyFactory <ICustomerService>(serviceStub); var serviceFactory = new ServiceFactory <ICustomerService>(() => customerServiceFactory.Create()); var factory = new ServiceFactoryHelper(serviceFactory, serviceStub); return(factory); }
public static ServiceFactoryHelper Create() { var serviceStub = new CustomerServiceStub(); var customerServiceFactory = new DemoProxyFactory<ICustomerService>(serviceStub); var serviceFactory = new ServiceFactory<ICustomerService>(() => customerServiceFactory.Create()); var factory = new ServiceFactoryHelper(serviceFactory, serviceStub); return factory; }