Template
chore: deploy initial code base
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Hangfire;
|
||||
using Hangfire.Common;
|
||||
using Hangfire.States;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Strata.ContinuousImprovement.Api.Test.Unit.Generics
|
||||
{
|
||||
public class FakeBackgroundJobClient : IBackgroundJobClient
|
||||
{
|
||||
public Queue<Job> Jobs { get; } = new Queue<Job>();
|
||||
|
||||
public string Create(Job job, IState state)
|
||||
{
|
||||
Jobs.Enqueue(job);
|
||||
return Jobs.Count.ToString();
|
||||
}
|
||||
|
||||
public bool ChangeState(string jobId, IState state, string expectedState)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user