예제 #1
0
        public void Process_WithNotRegisteredHandler_ShouldThrowException()
        {
            // Assign
            FakeUnregisteredQuery query     = new FakeUnregisteredQuery();
            IQueryProcessor       processor = new FakeQueryProcessor();

            // Act, Assert
            Assert.Throws <ArgumentException>(() => processor.Process(query));
        }
예제 #2
0
        public void Process_WithRegisteredHandler_ShouldReturnNotNull()
        {
            // Assign
            FakeQuery       query     = new FakeQuery();
            IQueryProcessor processor = new FakeQueryProcessor();

            // Act
            FakeResult result = processor.Process(query);

            // Assert
            Assert.NotNull(result);
        }