コード例 #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));
        }
コード例 #2
0
 public void TestCleanup()
 {
     this.simulator      = new NetworkRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
コード例 #3
0
 public NetworkRestSimulatorFactory(NetworkRestSimulator simulator)
 {
     this.Simulator = simulator;
 }