Ejemplo n.º 1
0
        public void Next()
        {
            var first = new FirstBuilder(this.Session).Build();

            this.Session.Derive(true);

            Assert.IsTrue(first.ExistIsDerived);

            Assert.IsTrue(first.Second.ExistIsDerived);

            Assert.IsTrue(first.Second.Third.ExistIsDerived);
        }
Ejemplo n.º 2
0
        public void Next()
        {
            var first = new FirstBuilder(this.Session).Build();

            this.Session.Derive(true);

            Assert.IsTrue(first.ExistIsDerived);

            Assert.IsTrue(first.Second.ExistIsDerived);

            Assert.IsTrue(first.Second.Third.ExistIsDerived);
        }
Ejemplo n.º 3
0
        public void Next()
        {
            var first = new FirstBuilder(this.Session).Build();

            this.Session.Derive();

            Assert.True(first.ExistIsDerived);
            Assert.True(first.Second.ExistIsDerived);
            Assert.True(first.Second.Third.ExistIsDerived);

            Assert.Equal(1, first.DerivationCount);
            Assert.Equal(1, first.Second.DerivationCount);
            Assert.Equal(1, first.Second.Third.DerivationCount);
        }
Ejemplo n.º 4
0
        public void Marked()
        {
            var first = new FirstBuilder(this.Session).Build();

            this.Session.Commit();

            var derivation = this.DerivationService.CreateDerivation(this.Session);

            derivation.Mark(first);
            derivation.Derive();

            Assert.True(first.ExistIsDerived);
            Assert.True(first.Second.ExistIsDerived);
            Assert.True(first.Second.Third.ExistIsDerived);

            Assert.Equal(1, first.DerivationCount);
            Assert.Equal(1, first.Second.DerivationCount);
            Assert.Equal(1, first.Second.Third.DerivationCount);
        }