public void GivenServiceFeature_WhenDeriving_ThenRequiredRelationsMustExist() { var builder = new ServiceFeatureBuilder(this.Session); builder.Build(); Assert.True(this.Session.Derive(false).HasErrors); this.Session.Rollback(); builder.WithName("Mt"); Assert.False(this.Session.Derive(false).HasErrors); }
public void GivenServiceFeature_WhenDeriving_ThenRequiredRelationsMustExist() { var builder = new ServiceFeatureBuilder(this.DatabaseSession); builder.Build(); Assert.IsTrue(this.DatabaseSession.Derive().HasErrors); this.DatabaseSession.Rollback(); builder.WithName("name").Build(); Assert.IsFalse(this.DatabaseSession.Derive().HasErrors); }