コード例 #1
0
        public void TestSetup()
        {
            this.simulator = new ComputeRestSimulator();
            this.ServiceLocator = new ServiceLocator();

            var manager = this.ServiceLocator.Locate<IServiceLocationOverrideManager>();
            manager.RegisterServiceInstance(typeof(IHttpAbstractionClientFactory), new ComputeRestSimulatorFactory(simulator));
        }
コード例 #2
0
        public void TestSetup()
        {
            this.simulator      = new ComputeRestSimulator();
            this.ServiceLocator = new ServiceLocator();

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

            manager.RegisterServiceInstance(typeof(IHttpAbstractionClientFactory), new ComputeRestSimulatorFactory(simulator));
        }
コード例 #3
0
 public ComputeRestSimulatorFactory(ComputeRestSimulator simulator)
 {
     this.Simulator = simulator;
 }
コード例 #4
0
 public void TestCleanup()
 {
     this.simulator = new ComputeRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
コード例 #5
0
 public void TestCleanup()
 {
     this.simulator      = new ComputeRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
コード例 #6
0
 public ComputeRestSimulatorFactory(ComputeRestSimulator simulator)
 {
     this.Simulator = simulator;
 }