Beispiel #1
0
        protected override void OnSetUp()
        {
            using (var session = OpenSession())
            {
                var organisation      = new Organisation();
                var trainingComponent = new TrainingComponent {
                    Code = "123", Title = "title"
                };
                var scope = new RtoScope
                {
                    Nrt       = trainingComponent,
                    Rto       = organisation,
                    StartDate = DateTime.Today.AddDays(-100)
                };

                session.Save(organisation);
                session.Save(trainingComponent);
                session.Save(scope);

                var searchResult = new OrganisationSearchResult {
                    Organisation = organisation
                };
                session.Save(searchResult);
                session.Flush();
            }
            base.OnSetUp();
        }
		protected override void OnSetUp()
		{
			using (var session = OpenSession())
			{
				var organisation = new Organisation();
				var trainingComponent = new TrainingComponent {Code = "123", Title = "title"};
				var scope = new RtoScope
								{
									Nrt = trainingComponent,
									Rto = organisation,
									StartDate = DateTime.Today.AddDays(-100)
								};

				session.Save(organisation);
				session.Save(trainingComponent);
				session.Save(scope);

				var searchResult = new OrganisationSearchResult {Organisation = organisation};
				session.Save(searchResult);
				session.Flush();
			}
			base.OnSetUp();
		}