Beispiel #1
0
        public void It_can_resolve_request()
        {
            var doubleInteger = new DoubleInteger(5);
            var reply         = _mediator.Request(doubleInteger);

            Assert.AreEqual(10, reply.DoubledValue);
        }
Beispiel #2
0
        public void It_throws_an_exception_when_the_request_is_null()
        {
            DoubleInteger request = null;

            Assert.Throws <ArgumentNullException>(() => _mediator.Request(request));
        }