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)); } }