Пример #1
0
        public void TestEmptyGetAllBatches()
        {
            CleanUp();
            List <Batch> batches = BatchDAL.GetAllBatches();

            Assert.AreEqual(null, batches);
        }
Пример #2
0
 /// <summary>
 /// Gets all batches.
 /// </summary>
 /// <returns></returns>
 public static List <Batch> GetAllBatches()
 {
     try
     {
         return(BatchDAL.GetAllBatches());
     }
     catch
     {
         throw;
     }
 }
Пример #3
0
        public void TestGetAllBatches()
        {
            TestAddBatch();

            List <Batch> batches = BatchDAL.GetAllBatches();

            Assert.IsTrue(_batch1.Equals(batches[0]));
            Assert.IsTrue(_batch2.Equals(batches[1]));
            Assert.IsTrue(_batch3.Equals(batches[2]));
            Assert.IsTrue(_batch4.Equals(batches[3]));
            Assert.IsTrue(_batch5.Equals(batches[4]));
            Assert.IsTrue(_batch6.Equals(batches[5]));
        }