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;
     }
 }
Пример #3
0
        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();
            }
        }
Пример #5
0
        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();
        }
Пример #6
0
 public void TearDown()
 {
     this.testData = null;
     this.sessionAuthenticatedUser.Dispose();
     this.sessionAuthenticatedUser = null;
 }