public void should_not_load_the_message_when_view_is_not_loaded()
        {
            ViewModel.Handle(new MessageBodyLoaded(new MessageBody {
                BodyRaw = Encoding.Default.GetBytes(TestMessage)
            }));

            View.DidNotReceive().Display(Arg.Any <string>());
        }
Пример #2
0
        public void should_not_load_the_message_when_view_is_not_loaded()
        {
            ViewModel.Handle(new SelectedMessageChanged(new StoredMessage {
                Body = TestMessage
            }));

            View.DidNotReceive().Display(Arg.Any <string>());
        }
        public void Should_not_load_the_message_when_view_is_not_loaded()
        {
            viewModel.Display(new StoredMessage {
                Body = new PresentationBody {
                    Text = TestMessage
                }
            });

            view.DidNotReceive().Display(Arg.Any <string>());
        }