Exemplo n.º 1
0
        public Associate UpdateAssociate(Associate associate)
        {
            associatesRepository.UpdateAssociate(associate);
            unitOfWork.Commit();
            var updatedAssociate = associatesRepository.GetAssociate(associate.Associate_Id);

            return(updatedAssociate);
        }
        public void UpdateAssociateTest()
        {
            var associate = associatesRepository.GetAssociate(567894);

            associate.Name = "TestServiceAssociateUpdated";
            associatesRepository.UpdateAssociate(associate);
            unitOfWork.Commit();
            var assoc = associatesRepository.GetAssociate(567894);

            Assert.NotNull(assoc);
            Assert.AreEqual(assoc.Name, associate.Name);
        }
 public Associate UpdateAssociate(Associate associate)
 {
     return(associatesRepository.UpdateAssociate(associate));
 }