Ejemplo n.º 1
0
        public void AddEducation()
        {
            BLModel.CourseName            = "testing Timer";
            BLModel.CourseDescription     = "testing tesing";
            BLModel.CourseTime            = "4";
            BLModel.CourseCredential      = true;
            BLModel.CourseFile            = "testfile";
            BLModel.CourseStartDate       = DateTime.Parse("7/8/2000");
            BLModel.CourseEndDate         = DateTime.Parse("7/8/2012");
            BLModel.CoursePresenterName   = "harry";
            BLModel.CouseAllotedDaysMonth = "Days";
            BLModel.CourseAllotedTime     = 4;
            BLModel.CourseStartTime       = "asdf";
            BLModel.IsTimerRequired       = false;
            BLModel.IndustryID            = 2;
            BLModel.ClientID = 1;
            int result = _educationBL.AddEducation(BLModel);

            Assert.IsTrue(result > 0, "Unable to Add");
        }
 public int AddEducation(DTO.Education education)
 {
     return(_education.AddEducation(Mapper.Map <DTO.Education, HCRGUniversity.Core.BL.Model.Education>(education)));
 }