Beispiel #1
0
        public void Try_GetSessions()
        {
            var lst = MonitorSessionAgentFactory
                      .CreateAgent()
                      .GetSessions();

            Assert.IsTrue(lst.Length >= 0);
        }
Beispiel #2
0
        /// <summary>
        /// Creates the agent.
        /// </summary>
        /// <returns></returns>
        private IMonitorSessionAgent CreateAgent()
        {
            var agt = MonitorSessionAgentFactory.CreateAgent();

            agt.GetSessionsCompleted += (lst) =>
            {
                IsBusy = false;
                UpdateSessions(lst);
                IsEmpty = (!lst.Any());
            };
            return(agt);
        }