Пример #1
0
        public void Send_void_variant()
        {
            var command = new PrintTextSpecial
            {
                Format = "This is a {0} message",
                Args   = new object[] { "text" }
            };

            var mediator = TestScope.Resolve <IMediator>();

            var response = mediator.Request(command);

            Assert.That(response.HasException(), Is.False,
                        response.Exception == null ? string.Empty : response.Exception.ToString());
        }
Пример #2
0
        public void Send_void_variant()
        {
            var command = new PrintTextSpecial
            {
                Format = "This is a {0} message",
                Args = new object[] {"text"}
            };

            var mediator = TestScope.Resolve<IMediator>();

            var response = mediator.Request(command);

            Assert.That(response.HasException(), Is.False,
                response.Exception == null ? string.Empty : response.Exception.ToString());
        }
Пример #3
0
        public void Send_variant()
        {
            var command = new PrintTextSpecial
                {
                    Format = "This is a {0} message",
                    Args = new object[] {"text"}
                };

            var mediator = ObjectFactory.GetInstance<IMediator>();

            var response = mediator.Send(command);

            Assert.That(response.HasException(), Is.False);
        }