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));
        }
示例#2
0
        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));
        }
示例#3
0
 public void TestCleanup()
 {
     this.RestClient     = new TestIdentityServiceRestClient();
     this.ServiceLocator = new ServiceLocator();
 }
 public void TestCleanup()
 {
     this.RestClient = new TestIdentityServiceRestClient();
     this.ServiceLocator = new ServiceLocator();
 }