Beispiel #1
0
        public void TestSetup()
        {
            this.simulator      = new NetworkRestSimulator();
            this.ServiceLocator = new ServiceLocator();

            var manager = this.ServiceLocator.Locate <IServiceLocationOverrideManager>();

            manager.RegisterServiceInstance(typeof(IHttpAbstractionClientFactory), new NetworkRestSimulatorFactory(simulator));
        }
Beispiel #2
0
 public void TestCleanup()
 {
     this.simulator      = new NetworkRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
 public NetworkRestSimulatorFactory(NetworkRestSimulator simulator)
 {
     this.Simulator = simulator;
 }