public void Verify_should_create_job_mime_extension(String mimetypes, String extensions, String fileName, Boolean expected) { QueueInfo sut = new QueueInfo("TEST", extensions: extensions, mimeTypes: mimetypes); StreamReadModel sr = new StreamReadModel(); sr.Filename = new Core.Model.FileNameWithExtension(fileName); Assert.That(sut.ShouldCreateJob(sr), Is.EqualTo(expected)); }
public void Queue_with_only_manual_execution( String mimetypes, String extensions, String pipeline, String fileName) { QueueInfo sut = new QueueInfo("TEST", extensions: extensions, mimeTypes: mimetypes, pipeline: pipeline); StreamReadModel sr = new StreamReadModel(); sr.Filename = new Core.Model.FileNameWithExtension(fileName); Assert.That(sut.ShouldCreateJob(sr), Is.EqualTo(false)); }