public void Setup() { MiniProfiler.Start(); _identity = Guid.NewGuid(); _queueName = Guid.NewGuid().ToString("N"); _processName = Guid.NewGuid().ToString("N"); _repository = Factory.Create(); _repository.ReleaseProcessLock(_processName); _queueId = _repository.CreateQueue(_queueName); var message = new SampleAction {Name = Guid.NewGuid().ToString()}; _repository.CreateMessage(_queueId, "Test", JsonSerializer.ToJson(message), null, null, 0, Guid.NewGuid()); _repository.CreateMessage(_queueId, "Test", JsonSerializer.ToJson(message), null, null, 0, _identity); }