protected static void CleanUpTestSession(SpecFlowContext context) { if (!context.ContainsKey("container_scope")) { return; } var scope = context.Get <ILifetimeScope>("container_scope"); context.Remove("container_scope"); scope.Dispose(); }
public static void ClearLastException(SpecFlowContext context) { context.Remove(LastExceptionContextKey); }