예제 #1
0
            public void TheProjectIsDuplicated()
            {
                var result = SUT.Validate(new CreateOrUpdateProject(projectToAdd));

                Assert.IsFalse(result.IsValid);
                Assert.AreEqual(1, result.Errors.Count);
            }
예제 #2
0
            public void TheProjectCommandIsValid()
            {
                var result = SUT.Validate(new CreateOrUpdateProject(project));

                Assert.IsTrue(result.IsValid);
            }