public void IsValid() { var item = new RoleDto() { Name = Guid.NewGuid().ToString(), }; Assert.IsTrue(item.IsValid()); }
public void IsInvalid() { var item = new RoleDto() { Name = string.Empty, }; Assert.IsFalse(item.IsValid()); }