Exemple #1
0
 private static T RunInternal <T>(Func <ISmocksContext, T> func, Configuration configuration)
 {
     using (Smock context = new Smock(configuration))
     {
         return(context.RunFunc(func, configuration));
     }
 }
Exemple #2
0
        private static T RunInternal <T>(Func <ISmocksContext, T> func, Configuration configuration)
        {
            Smock context = new Smock(CreateServiceLocator(configuration));

            return(context.RunFunc(func, configuration));
        }