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