public void Initialize()
            {
                PatternSchema product = null;

                this.store = new Store(VsIdeTestHostContext.ServiceProvider,
                    new Type[] { typeof(CoreDesignSurfaceDomainModel), typeof(PatternModelDomainModel), typeof(LibraryDomainModel) });

                this.store.TransactionManager.DoWithinTransaction(() =>
                {
                    var patternModel = this.store.ElementFactory.CreateElement<PatternModelSchema>();
                    product = patternModel.Create<PatternSchema>();
                });

                this.validationExtension = product.GetExtensions<IValidationExtension>().FirstOrDefault();
                this.container = product as IPatternElementSchema;
            }
            public void Initialize()
            {
                PatternSchema product = null;

                this.store = new Store(VsIdeTestHostContext.ServiceProvider,
                                       new Type[] { typeof(CoreDesignSurfaceDomainModel), typeof(PatternModelDomainModel), typeof(LibraryDomainModel) });

                this.store.TransactionManager.DoWithinTransaction(() =>
                {
                    var patternModel = this.store.ElementFactory.CreateElement <PatternModelSchema>();
                    product          = patternModel.Create <PatternSchema>();
                });

                this.validationExtension = product.GetExtensions <IValidationExtension>().FirstOrDefault();
                this.container           = product as IPatternElementSchema;
            }