public void Setup() { testData = TestEnvironment.DefaultTestEnvironment(); this.sessionAuthenticatedUser = SitecoreSSCSessionBuilder.AuthenticatedSessionWithHost(this.testData.InstanceUrl) .Credentials(this.testData.Users.Admin) .BuildReadonlySession(); }
public void TearDown() { using (new FunctionTracer("CancelOperationsTest->tearDown()", DebugWriteLineBlock)) { this.testData = null; this.session.Dispose(); this.session = null; } }
public void TearDown() { this.testData = null; if (this.session != null) { this.session.Dispose(); } this.session = null; }
public void Setup() { using (new FunctionTracer("CancelOperationsTest->setup()", DebugWriteLineBlock)) { this.testData = TestEnvironment.DefaultTestEnvironment(); this.session = SitecoreSSCSessionBuilder.AuthenticatedSessionWithHost(this.testData.InstanceUrl) .Credentials(this.testData.Users.Admin) .BuildReadonlySession(); } }
public void Setup() { this.testData = TestEnvironment.DefaultTestEnvironment(); this.sessionAuthenticatedUser = SitecoreSSCSessionBuilder.AuthenticatedSessionWithHost(testData.InstanceUrl) .Credentials(testData.Users.Admin) .DefaultDatabase("web") .DefaultLanguage("en") .BuildReadonlySession(); this.requestWithItemId = ItemSSCRequestBuilder.ReadItemsRequestWithId(testData.Items.ItemWithVersions.Id) .Build(); }
public void TearDown() { this.testData = null; this.sessionAuthenticatedUser.Dispose(); this.sessionAuthenticatedUser = null; }