/// <summary> /// Runs the specified action as a Smocks session. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="action">The action.</param> public static void Run(Configuration configuration, Action <ISmocksContext> action) { using (Smock context = new Smock(configuration)) { context.RunAction(action, configuration); } }
/// <summary> /// Runs the specified action as a Smocks session. /// </summary> /// <param name="configuration">The configuration.</param> /// <param name="action">The action.</param> public static void Run(Configuration configuration, Action <ISmocksContext> action) { Smock context = new Smock(CreateServiceLocator(configuration)); context.RunAction(action, configuration); }