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); }
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); }
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); }