public void TestSetup() { this.RestClient = new TestIdentityServiceRestClient(); this.ServiceLocator = new ServiceLocator(); this.ServiceLocator.EnsureAssemblyRegistration(typeof(ServiceLocator).Assembly); var manager = this.ServiceLocator.Locate<IServiceLocationOverrideManager>(); manager.RegisterServiceInstance(typeof(IIdentityServiceRestClientFactory), new TestIdentityServiceRestClientFactory(RestClient)); manager.RegisterServiceInstance(typeof(IOpenStackRegionResolver), new TestOpenStackRegionResolver(defaultRegion)); }
public void TestSetup() { this.RestClient = new TestIdentityServiceRestClient(); this.ServiceLocator = new ServiceLocator(); this.ServiceLocator.EnsureAssemblyRegistration(typeof(ServiceLocator).Assembly); var manager = this.ServiceLocator.Locate <IServiceLocationOverrideManager>(); manager.RegisterServiceInstance(typeof(IIdentityServiceRestClientFactory), new TestIdentityServiceRestClientFactory(RestClient)); manager.RegisterServiceInstance(typeof(IOpenStackRegionResolver), new TestOpenStackRegionResolver(defaultRegion)); }
public void TestCleanup() { this.RestClient = new TestIdentityServiceRestClient(); this.ServiceLocator = new ServiceLocator(); }