예제 #1
0
        public void StepWillSaveWithValidName()
        {
            var step = new Step { Name = "VALIDNAME" };

            using (var ts = new TransactionScope())
            {
                Repository.OfType<Step>().EnsurePersistent(step);

                ts.CommitTransaction();
            }

            Assert.AreEqual(false, step.IsTransient());
        }