public void DelteLinkmanTest() { Contact testContact = CreateTestContact(); contactServices.SaveLinkman(testContact.SysNo, testContact.UserId, testContact.Linkmans[0]); Guid testLinkmanId = testContact.Linkmans[0].Id; _LinkMans.Add(testContact.Linkmans[0]); contactServices.DeleteLinkman(testContact.GetLinkmanById(testLinkmanId).Id); Contact GetMan = contactServices.LoadAllContact(testContact.SysNo, testContact.UserId, false); Assert.AreEqual(0, GetMan.Linkmans.Count); }
public void DeleteEvent() { try { _contactService.DeleteLinkman(_View.LinkManId); _View.ActionSuccess = true; } catch (Exception ae) { _View.Message = ae.Message; } }
private void _view_DeleteLinkman(Guid guid) { _contactService.DeleteLinkman(guid); }