예제 #1
0
        public void Validate_WhenQueryDefined_CallsExpectedValidator()
        {
            // Arrange
            var query = new FakeQuery1();

            // Act
            this.processor.Validate(query);
            // Assert
            this.validatorOfQuery1.Received(1).Validate(query);
        }
예제 #2
0
        public void Process_WhenQueryDefined_CallsExpectedHandler()
        {
            // Arrange
            var query = new FakeQuery1();

            // Act
            this.processor.Process(query);
            // Assert
            this.handlerOfQuery1.Received(1).Handle(query);
        }