Beispiel #1
0
            public void PCManagerCanDeletePolicy(int policyNumber)
            {
                PCManager manager = PCMFactory.Create();

                manager.DeletePolicy(policyNumber);
                List <Policy> policies = manager.GetAllPolicies().ToList();

                Assert.AreEqual(3, policies.Count);
            }
Beispiel #2
0
 public ActionResult DeletePolicy(Policy policy)
 {
     _manager.DeletePolicy(policy.PolicyNumber);
     return(RedirectToAction("ManagePolicies"));
 }