Exemplo n.º 1
0
        /// <summary>
        /// Gets an instance of XrmMockup2016
        /// </summary>
        /// <param name="Settings"></param>
        public static XrmMockup2016 GetInstance(XrmMockupSettings Settings)
        {
            if (instances.ContainsKey(Settings))
            {
                return(instances[Settings]);
            }
            var instance = new XrmMockup2016(Settings);

            instances[Settings] = instance;
            return(instance);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Gets an instance of XrmMockup2011
        /// </summary>
        /// <param name="Settings"></param>
        public static XrmMockup2016 GetInstance(XrmMockupSettings Settings)
        {
            if (instances.ContainsKey(Settings))
            {
                return(instances[Settings]);
            }
            var prefix   = "../../Metadata";
            var instance = new XrmMockup2016(Settings, Utility.GetMetadata(prefix), Utility.GetWorkflows(prefix), Utility.GetSecurityRoles(prefix));

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