Template
24 lines
613 B
C#
24 lines
613 B
C#
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();
|
|
}
|
|
}
|
|
} |