public void TransactionInsertRequest_ShouldAllow() { TransactionInsertRequestValidator sut = new TransactionInsertRequestValidator(); sut.ShouldNotHaveValidationErrorFor(t => t.CreditorOccupantId, 1); sut.ShouldNotHaveValidationErrorFor(t => t.CreditorOccupantId, 9999); sut.ShouldNotHaveValidationErrorFor(t => t.DebtorOccupantId, 1); sut.ShouldNotHaveValidationErrorFor(t => t.DebtorOccupantId, 9999); sut.ShouldNotHaveValidationErrorFor(t => t.Gross, NumberGenerator.RandomDecimal(17, 2)); sut.ShouldNotHaveValidationErrorFor(t => t.Gross, NumberGenerator.RandomDecimal(2, 2)); sut.ShouldNotHaveValidationErrorFor(t => t.Reference, StringGenerator.RandomString(200)); sut.ShouldNotHaveValidationErrorFor(t => t.Date, DateTime.Now); }