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

            var manager = this.ServiceLocator.Locate<IServiceLocationOverrideManager>();
            manager.RegisterServiceInstance(typeof(IStorageServiceRestClientFactory), new TestStorageServiceRestClientFactory(StorageServiceRestClient));
        }
コード例 #2
0
 public void TestCleanup()
 {
     this.StorageServiceRestClient = new TestStorageServiceRestClient();
     this.ServiceLocator = new ServiceLocator();
 }