private void InsertIfNeeded(IDataComponent component)
        {
            if (component.Find <JobConfiguration>(u => u.Name == "Test Job") == null)
            {
                var newJob = new JobConfiguration();
                newJob.Name = "Test Job";

                Assert.IsTrue(component.Insert <JobConfiguration>(newJob));
            }
        }
예제 #2
0
 public List <JobConfiguration> GetJobs()
 {
     return(_dataComponent.Find <JobConfiguration>(j => !j.AuditInfo.IsArchived));
 }