Ejemplo n.º 1
0
        public void XMLDataComponentTest_DeleteWhereTest()
        {
            var component = new XMLDataComponent(new LoggerMock());

            Assert.IsTrue(component.Delete <JobConfiguration>(x => x.Name == "BobbyDeleteWhere"));

            var realJob = component.Find <JobConfiguration>(3);

            Assert.IsNull(realJob);
        }
Ejemplo n.º 2
0
        public void XMLDataComponentTest_DeleteKeyTest()
        {
            var component = new XMLDataComponent(new LoggerMock());

            Assert.IsTrue(component.Delete <JobConfiguration>(2));

            var realJob = component.Find <JobConfiguration>(2);

            Assert.IsNull(realJob);
        }
Ejemplo n.º 3
0
        public void XMLDataComponentTest_DeleteTest()
        {
            var component = new XMLDataComponent(new LoggerMock());

            var newJob = new JobConfiguration();

            newJob.JobConfigurationId = 1;
            newJob.Name = "Test Job";

            Assert.IsTrue(component.Delete(newJob));
            var realNewJob = component.Find <JobConfiguration>(1);

            Assert.IsNull(realNewJob);
        }