You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
876 B
35 lines
876 B
using Quartz;
|
|
using Xunit;
|
|
|
|
namespace OpenIddict.Quartz.Tests;
|
|
|
|
public class OpenIddictQuartzConfigurationTests
|
|
{
|
|
[Fact]
|
|
public void UseQuartz_RegistersJobDetails()
|
|
{
|
|
// Arrange
|
|
var options = new QuartzOptions();
|
|
var configuration = new OpenIddictQuartzConfiguration();
|
|
|
|
// Act
|
|
configuration.Configure(options);
|
|
|
|
// Assert
|
|
Assert.Contains(options.JobDetails, job => job.Key.Equals(OpenIddictQuartzJob.Identity));
|
|
}
|
|
|
|
[Fact]
|
|
public void UseQuartz_RegistersTriggerDetails()
|
|
{
|
|
// Arrange
|
|
var options = new QuartzOptions();
|
|
var configuration = new OpenIddictQuartzConfiguration();
|
|
|
|
// Act
|
|
configuration.Configure(options);
|
|
|
|
// Assert
|
|
Assert.Contains(options.Triggers, trigger => trigger.JobKey.Equals(OpenIddictQuartzJob.Identity));
|
|
}
|
|
}
|
|
|