protected bool BeValidGuidWhenSet <TDto>(TDto dto, string value) => string.IsNullOrWhiteSpace(value) || GuidUtils.IsValid(value);
public void IsValid_With_Empty_String_Guid_Returns_False() { GuidUtils.IsValid(string.Empty).ShouldBeFalse(); }
public void IsValid_With_Invaid_Guid_Returns_False() { GuidUtils.IsValid("not a guid").ShouldBeFalse(); }
public void IsValid_With_Null_Guid_Returns_False() { GuidUtils.IsValid(null).ShouldBeFalse(); }
public void IsValid_With_Valid_Guid_Returns_True() { GuidUtils.IsValid(Guid.NewGuid().ToString()).ShouldBeTrue(); }