コード例 #1
0
        public void get_active_consumer_sessions_should_return_sessions()
        {
            _consumerService.GetActiveSessions().Returns(new[] { GetConsumerSession() });
            var result = _rpc.ndm_getActiveConsumerSessions();

            _consumerService.Received().GetActiveSessions();
            result.Data.Should().ContainSingle();
            var session = result.Data.Single();

            VerifyConsumerSession(session);
        }