Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testConversationStop()
        public virtual void TestConversationStop()
        {
            RequestContext requestContext = RequestContext;

            _conversationManager = ConversationManager;

            Conversation conversation = mock(typeof(Conversation));

            when(conversation.Active).thenReturn(true);

            TimedRepository conversationStorage = mock(typeof(TimedRepository));

            when(conversationStorage.end(requestContext)).thenReturn(conversation);
            _conversationManager.conversations = conversationStorage;

            _conversationManager.stop(requestContext);

            verify(conversationStorage).end(requestContext);
            verify(conversation).stop();
        }
Exemplo n.º 2
0
 public virtual void End(RequestContext context)
 {
     Conversations.end(context);
 }