コード例 #1
0
        public void Abandoning_a_session_should_clear_it()
        {
            var session = Utilities.CreateValidSession();

            sessionService.Abandon(session);

            Assert.IsFalse(session.LoggedOn);
        }
コード例 #2
0
        public void LogOff()
        {
            var sessionService = new SessionService(clientFactory);

            sessionService.Abandon(_session);
            Console.WriteLine("Logged off.");
            Console.WriteLine();
        }