Ejemplo n.º 1
0
        public void DeleteAssociateTest()
        {
            AssociateList associate     = associatesController.GetAssociates().OrderByDescending(s => s.ID).FirstOrDefault();
            var           associateList = associatesController.DeleteAssociate(associate.ID);

            Assert.IsNotNull(associateList);

            associateList = associatesController.DeleteAssociate(0);
            Assert.IsNull(associateList);
        }
Ejemplo n.º 2
0
 public void Cleanup()
 {
     foreach (int assocId in _associateIdList)
     {
         var result = _assocController.DeleteAssociate(assocId);
     }
 }