Exemple #1
0
        public void TearDown()
        {
            ITestObjectManager testObjectManager = ctx["testObjectManager"] as ITestObjectManager;

            testObjectManager.DeleteTwoTestObjects("Jack", "Jill");
            testObjectManager.DeleteAllTestObjects();
        }
Exemple #2
0
        public void SetUp()
        {
            ctx =
                new XmlApplicationContext("assembly://Spring.Data.Integration.Tests/Spring.Data/templateTests.xml");
            dbProvider         = ctx["DbProvider"] as IDbProvider;
            transactionManager = ctx["transactionManager"] as IPlatformTransactionManager;
            adoOperations      = ctx["adoTemplate"] as IAdoOperations;

            ITestObjectManager testObjectManager = ctx["testObjectManager"] as ITestObjectManager;

            testObjectManager.DeleteAllTestObjects();
            testObjectManager.SaveTwoTestObjects(new TestObject("Jack", 10), new TestObject("Jill", 20));
        }
Exemple #3
0
        private void DeleteTestData()
        {
            ITestObjectManager testObjectManager = ctx["testObjectManager"] as ITestObjectManager;

            testObjectManager.DeleteAllTestObjects();
        }