예제 #1
0
        /// <summary>
        ///   Creates a list containing 3 fake instances of the type specified
        ///   via <typeparamref name = "TInterfaceType" />.
        /// </summary>
        /// <typeparam name = "TInterfaceType">Specifies the item type of the list. This should be an interface or an abstract class.</typeparam>
        /// <returns>An <see cref = "IList{T}" />.</returns>
        public static IList <TInterfaceType> Some <TInterfaceType>() where TInterfaceType : class
        {
            GuardAgainstStaticContext();

            return(_specificationController.Some <TInterfaceType>());
        }
예제 #2
0
 protected static IList <TInterfaceType> Some <TInterfaceType>() where TInterfaceType : class
 {
     return(specificationController.Some <TInterfaceType>());
 }