public async Task InvalidName_ValidationException(int locationNameLength) { var locationName = new string('x', locationNameLength); var command = new CreateLocationCommand { Name = locationName }; var validator = new CreateLocationCommandValidator(); var result = await validator.ValidateAsync(command); Assert.NotNull(result); Assert.False(result.IsValid); }
public void TestInitialize() { _validator = new CreateLocationCommandValidator(); }
public CreateLocationCommandValidatorTests() { this.createValidator = new CreateLocationCommandValidator(); this.createCommand = new CreateLocationCommand(); }