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 Jobs { get; } = new Queue(); 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(); } } }