예제 #1
0
        public void updateFaculty()
        {
            DLModel.FacultyID         = 1;
            DLModel.FirstName         = "testing tesing";
            DLModel.LastName          = "Last tsst";
            DLModel.Email             = "*****@*****.**";
            DLModel.Company           = "compaly";
            DLModel.Phone             = "1234567891";
            DLModel.ProfessionalTitle = "prof";
            DLModel.AddressStreet     = "street";
            DLModel.AddressFloor      = "floor";
            DLModel.City            = "city";
            DLModel.State           = "state";
            DLModel.Zip             = "7878";
            DLModel.AreaOfExpertise = "area of s";
            DLModel.Topics          = "topics";
            DLModel.Resume          = "resume";
            int result = _facutlyBL.UpdateFaculty(DLModel);

            Assert.IsTrue(result > 0, "Unable to Add");
        }
 public int UpdateFaculty(DTO.Faculty _facul)
 {
     return(_faculty.UpdateFaculty(Mapper.Map <DTO.Faculty, HCRGUniversity.Core.Data.Model.Faculty>(_facul)));
 }