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 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(); }