public Scenario(ISessionFactory sessionFactory)
            {
                this.sessionFactory = sessionFactory;
                ruleSetId           = 2;
                ruleSetName         = "RuleSet" + ruleSetId.ToString();

                using (var session = sessionFactory.OpenSession())
                {
                    using (var tr = session.BeginTransaction())
                    {
                        TrafficRuleSet ruleSet = new TrafficRuleSet {
                            name = ruleSetName, description = ruleSetName
                        };
                        TrafficRule rule = new TrafficRule {
                            ruleSet = ruleSet, name = ruleSetName + "-a", description = "Some description"
                        };

                        ruleSet.rules = new List <TrafficRule> {
                            rule
                        };

                        ruleSetId = (int)session.Save(ruleSet);
                        tr.Commit();
                    }
                }
            }
			public Scenario(ISessionFactory sessionFactory)
			{
				this.sessionFactory = sessionFactory;
				ruleSetId = 2;
				ruleSetName = "RuleSet" + ruleSetId.ToString();

				using (var session = sessionFactory.OpenSession())
				{
					using (var tr = session.BeginTransaction())
					{
						TrafficRuleSet ruleSet = new TrafficRuleSet {name = ruleSetName, description = ruleSetName};
						TrafficRule rule = new TrafficRule {ruleSet = ruleSet, name = ruleSetName + "-a", description = "Some description"};

						ruleSet.rules = new List<TrafficRule> {rule};

						ruleSetId = (int) session.Save(ruleSet);
						tr.Commit();
					}
				}
			}