Skip to content

Commit

Permalink
Unit tests optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
ilbertz committed Apr 11, 2016
1 parent 4fbe395 commit 8b7673f
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
Binary file modified src/Nca.Valdr.Core.Nuget/lib/Nca.Valdr.dll
Binary file not shown.
Binary file modified src/Nca.Valdr.Nuget/lib/Nca.Valdr.Console.exe
Binary file not shown.
Binary file modified src/Nca.Valdr.Nuget/lib/Nca.Valdr.dll
Binary file not shown.
3 changes: 1 addition & 2 deletions src/Nca.Valdr.Tests/DTOs/PersonDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ public class PersonDto
/// </summary>
[DataMember(Name = "birthday")]
[ValdrMember(Name = "birthday")]
[Required]
[Past(ErrorMessage = @"Birthday must be in the past.")]
public DateTime Birthday { get; set; }
public DateTime? Birthday { get; set; }

/// <summary>
/// Age of person
Expand Down
3 changes: 0 additions & 3 deletions src/Nca.Valdr.Tests/app/app.valdr.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
}
},
"birthday": {
"required": {
"message": "Birthday is required."
},
"past": {
"message": "Birthday must be in the past."
}
Expand Down

0 comments on commit 8b7673f

Please sign in to comment.