Exemple #1
0
        public void Delete()
        {
            UnityResolver.Register();
            IBatchManager BatchManager = UnityResolver.Resolve <IBatchManager>();
            Batch         batch        = BatchManager.Find(B => B.BatchId == 115);

            bool ans = BatchManager.Delete(batch);

            BatchManager.Save();



            bool expected = true;
            bool actual   = ans;

            Assert.AreEqual(expected, actual);
        }