Skip to content

Mock for commands and validators in ValidationBehaviorTests #6

Description

@Arnab-Developer

@ardalis there are some real test command and validator objects have been used in the ValidationBehaviorTests.cs file.

  • TestCommand
  • TestCommandValidator
  • ResultTestCommand
  • ResultTestCommandValidator
  • GenericResultTestCommand
  • GenericResultTestCommandValidator

I think we can use mock objects instead of those real objects. The advantage will be, we can verify those mocks in the unit tests.

If you want this change, then can I send a pull request for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions