protected override void TestCleanupInternal()
        {
            OctaneConfiguration.Url           = _url;
            OctaneConfiguration.SharedSpaceId = _ssid;
            OctaneConfiguration.WorkSpaceId   = _wsid;
            OctaneConfiguration.Username      = _username;
            OctaneConfiguration.Password      = _password;

            WorkspaceSessionPersistanceManager.ClearActiveEntity();
        }
        protected override void TestInitializeInternal()
        {
            _url      = OctaneConfiguration.Url;
            _ssid     = OctaneConfiguration.SharedSpaceId;
            _wsid     = OctaneConfiguration.WorkSpaceId;
            _username = OctaneConfiguration.Username;
            _password = OctaneConfiguration.Password;

            WorkspaceSessionPersistanceManager.ClearActiveEntity();
        }
Exemple #3
0
        /// <summary>
        /// Clear the current active item
        /// </summary>
        public static void ClearActiveItem()
        {
            if (CurrentActiveItem != null)
            {
                CurrentActiveItem.IsActiveWorkItem = false;
            }

            CurrentActiveItem = null;
            WorkspaceSessionPersistanceManager.ClearActiveEntity();
        }
        public void WorkspaceSessionPersistanceManagerTests_SetActiveEntity_ValidEntity_Success()
        {
            ValidateActiveEntity(null);

            var story = new Story(123)
            {
                SubType = WorkItem.SUBTYPE_STORY
            };

            WorkspaceSessionPersistanceManager.SetActiveEntity(story);
            ValidateActiveEntity(story);

            WorkspaceSessionPersistanceManager.ClearActiveEntity();
            ValidateActiveEntity(null);
        }