private static void UseSession(Action <StatelessSessionWrapper> action) { using (var storage = ConnectionUtils.GetStorage()) { action(storage.GetStatelessSession()); } }
private static void DropDatabase() { var fluentNHibernateJobStorage = ConnectionUtils.GetStorage(); fluentNHibernateJobStorage.ResetAll(); }
private static void DropDatabase() { new FluentNHibernateJobStorageTestWrapper(ConnectionUtils.GetStorage()).TruncateAllHangfireTables(); }
public override void Before(MethodInfo methodUnderTest) { new FluentNHibernateJobStorageTestWrapper(ConnectionUtils.GetStorage()).TruncateAllHangfireTables(); }
public override void Before(MethodInfo methodUnderTest) { ConnectionUtils.GetStorage().ResetAll(); }