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();
        }
Beispiel #2
0
 public static void ClearLastException(SpecFlowContext context)
 {
     context.Remove(LastExceptionContextKey);
 }