public void ValidateSampleDtoWithValidNameSucceeds() { // Arrange var sampleDto = new SampleDto() { Name = SAMPLE_DTO_NAME }; // Act sampleDto.Validate(); // Arrange }
public void ValidateSampleDtoWithInvalidNameThrowsContractException() { // Arrange var sampleDto = new SampleDto() { Name = " " }; // Act sampleDto.Validate(); // Arrange }