Beispiel #1
0
        public void Requeue_SetsFetchedAtValueToNull()
        {
            UseConnection(connection =>
            {
                // Arrange
                var id            = CreateJobQueueRecord(connection, _options, "1", "default");
                var processingJob = new FirebirdFetchedJob(connection, _options, id, "1", "default");

                // Act
                processingJob.Requeue();

                // Assert
                var record = connection.Query(string.Format(@"SELECT * FROM ""{0}.JOBQUEUE""", _options.Prefix)).Single();
                Assert.Null(record.FETCHEDAT);
            });
        }
        public void Requeue_SetsFetchedAtValueToNull()
        {
            UseConnection(connection =>
            {
                // Arrange
                var id = CreateJobQueueRecord(connection, _options, "1", "default");
                var processingJob = new FirebirdFetchedJob(connection, _options, id, "1", "default");

                // Act
                processingJob.Requeue();

                // Assert
                var record = connection.Query(string.Format(@"SELECT * FROM ""{0}.JOBQUEUE""", _options.Prefix)).Single();
                Assert.Null(record.FETCHEDAT);
            });
        }