public void SQLDataComponentTest_DeleteWhereTest()
        {
            var component = new SQLDataComponent(new LoggerMock());

            InsertIfNeeded(component);

            Assert.IsTrue(component.Delete <JobConfiguration>(u => u.Name == "Test Job"));

            Assert.IsNull(component.Find <JobConfiguration>(u => u.Name == "Test Job"));
        }
        public void SQLDataComponentTest_DeleteTest()
        {
            var component = new SQLDataComponent(new LoggerMock());

            InsertIfNeeded(component);

            var job = component.Find <JobConfiguration>(u => u.Name == "Test Job");

            Assert.IsNotNull(job);
            Assert.AreEqual(1, job.Count);

            var job1 = job.FirstOrDefault();

            Assert.AreEqual("Test Job", job1.Name);

            Assert.IsTrue(component.Delete <JobConfiguration>(job1.JobConfigurationId));
            var find = component.Find <JobConfiguration>(job1.JobConfigurationId);

            Assert.IsNull(find);
        }