public void TestSetup()
        {
            this.simulator = new ComputeRestSimulator();
            this.ServiceLocator = new ServiceLocator();

            var manager = this.ServiceLocator.Locate<IServiceLocationOverrideManager>();
            manager.RegisterServiceInstance(typeof(IHttpAbstractionClientFactory), new ComputeRestSimulatorFactory(simulator));
        }
Exemple #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));
        }
 public ComputeRestSimulatorFactory(ComputeRestSimulator simulator)
 {
     this.Simulator = simulator;
 }
 public void TestCleanup()
 {
     this.simulator = new ComputeRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
Exemple #5
0
 public void TestCleanup()
 {
     this.simulator      = new ComputeRestSimulator();
     this.ServiceLocator = new ServiceLocator();
 }
 public ComputeRestSimulatorFactory(ComputeRestSimulator simulator)
 {
     this.Simulator = simulator;
 }