Beispiel #1
0
        /// <summary>
        /// Gets an instance of XrmMockup2013
        /// </summary>
        /// <param name="Settings"></param>
        public static XrmMockup2013 GetInstance(XrmMockupSettings Settings)
        {
            if (instances.ContainsKey(Settings))
            {
                return(instances[Settings]);
            }

            var instance = new XrmMockup2013(Settings);

            instances[Settings] = instance;
            return(instance);
        }
Beispiel #2
0
        /// <summary>
        /// Gets an instance of XrmMockup2013
        /// </summary>
        /// <param name="Settings"></param>
        public static XrmMockup2013 GetInstance(XrmMockupSettings Settings)
        {
            if (instances.ContainsKey(Settings))
            {
                return(instances[Settings]);
            }

            var prefix   = "../../Metadata";
            var instance = new XrmMockup2013(Settings, Utility.GetMetadata(prefix), Utility.GetWorkflows(prefix), Utility.GetSecurityRoles(prefix));

            instances[Settings] = instance;
            return(instance);
        }