public void TheProjectIsDuplicated() { var result = SUT.Validate(new CreateOrUpdateProject(projectToAdd)); Assert.IsFalse(result.IsValid); Assert.AreEqual(1, result.Errors.Count); }
public void TheProjectCommandIsValid() { var result = SUT.Validate(new CreateOrUpdateProject(project)); Assert.IsTrue(result.IsValid); }