Esempio n. 1
0
        public void GivenFinishedGood_WhenDeriving_ThenRequiredRelationsMustExist()
        {
            var builder = new FinishedGoodBuilder(this.DatabaseSession);
            var finishedGood = builder.Build();

            Assert.IsTrue(this.DatabaseSession.Derive().HasErrors);

            this.DatabaseSession.Rollback();

            builder.WithName("FinishedGood");
            finishedGood = builder.Build();

            Assert.IsFalse(this.DatabaseSession.Derive().HasErrors);
        }