Exemplo n.º 1
0
        /// <summary>
        /// Determines the mock for a specific type name.
        /// </summary>
        /// <param name="name"> The name of the original type. </param>
        /// <returns>The mock object.</returns>
        private static object GetMock(string name)
        {
            if (!string.IsNullOrEmpty(name))
            {
                if (Mocks.ContainsKey(name))
                {
                    return(Mocks[name]);
                }
            }

            return(null);
        }