public void TestGetPermitInspections()
        {
            IOpenPermitAdapter adapter     = new SQLOpenPermitAdapter();
            List <Inspection>  inspections = adapter.GetInspections("PERMNUM_15");

            Assert.AreEqual(inspections.Count, 10);
        }
        public void TestGetPermitInspection()
        {
            IOpenPermitAdapter adapter       = new SQLOpenPermitAdapter();
            List <Inspection>  inspections   = adapter.GetInspections("PERMNUM_15");
            Inspection         refInspection = inspections[5];
            Inspection         inspection    = adapter.GetInspection("PERMNUM_15", refInspection.Id);

            Assert.IsNotNull(inspection);
            Assert.AreEqual(refInspection.Inspector, inspection.Inspector);
        }
 public void TestGetPermitInspection()
 {
     IOpenPermitAdapter adapter = new SQLOpenPermitAdapter();
     List<Inspection> inspections = adapter.GetInspections("PERMNUM_15");
     Inspection refInspection = inspections[5];
     Inspection inspection = adapter.GetInspection("PERMNUM_15", refInspection.Id);
     Assert.IsNotNull(inspection);
     Assert.AreEqual(refInspection.Inspector, inspection.Inspector);
 }
 public void TestGetPermitInspections()
 {
     IOpenPermitAdapter adapter = new SQLOpenPermitAdapter();
     List<Inspection> inspections = adapter.GetInspections("PERMNUM_15");
     Assert.AreEqual(inspections.Count, 10);
 }