예제 #1
0
        /// <summary>
        ///   Creates a fake of the type specified by <typeparamref name = "TInterfaceType" />.
        /// </summary>
        /// <typeparam name = "TInterfaceType">The type to create a fake for. (Should be an interface or an abstract class)</typeparam>
        /// <param name="args">
        ///  Optional constructor parameters for abstract base classes as fakes.
        /// </param>
        /// <returns>
        ///   An newly created fake implementing <typeparamref name = "TInterfaceType" />.
        /// </returns>
        public static TInterfaceType An <TInterfaceType>(params object[] args) where TInterfaceType : class
        {
            GuardAgainstStaticContext();

            return(_specificationController.An <TInterfaceType>(args));
        }
예제 #2
0
 protected static TInterfaceType An <TInterfaceType>(params object[] args) where TInterfaceType : class
 {
     return(specificationController.An <TInterfaceType>(args));
 }