public void RunScript()
        {
            using (var t = new TransactionScope(TransactionScopeOption.Required))
            {
                this.PersonData = new PersonData(Repository);
                this.PersonDataChecker = new PersonDataChecker();
                this.PartyData = new PartyData(Repository);
                this.PartyDataChecker = new PartyDataChecker();
                this.LocationData = new LocationData(Repository);
                this.LocationDataChecker = new LocationDataChecker();
                this.SourceSystemData = new SourceSystemData(Repository);
                this.SourceSystemDataChecker = new SourceSystemDataChecker();

                var z = new Zapper(Repository);
                z.Zap();

                this.CreateSystems();
                Repository.Flush();
                t.Complete();
            }
        }
Exemple #2
0
        public void RunScript()
        {
            using (var t = new TransactionScope(TransactionScopeOption.Required))
            {
                this.PersonData              = new PersonData(Repository);
                this.PersonDataChecker       = new PersonDataChecker();
                this.PartyData               = new PartyData(Repository);
                this.PartyDataChecker        = new PartyDataChecker();
                this.LocationData            = new LocationData(Repository);
                this.LocationDataChecker     = new LocationDataChecker();
                this.SourceSystemData        = new SourceSystemData(Repository);
                this.SourceSystemDataChecker = new SourceSystemDataChecker();

                var z = new Zapper(Repository);
                z.Zap();

                this.CreateSystems();
                Repository.Flush();
                t.Complete();
            }
        }