public void TestAddOrUpdateProfileWorkExperience_ItShouldSetAddOrUpdateProfileWorkExperience_Success() { var model = new ProfileWorkExperienceView() { ProfileId = 13594, OrganizationName = "New Test Org", JobTitle = "New Job", DateFrom = DateTime.Now.AddYears(-20), CountryId = 10, IndustryId = 10 }; var data = _assessmentService.AddOrUpdateProfileWorkExperienceAsync(model).Result; Assert.IsNotNull(data); }
public async Task <IActionResult> AddOrUpdateProfileWorkExperienceAsync([FromBody] ProfileWorkExperienceView model) { var result = await _service.AddOrUpdateProfileWorkExperienceAsync(model); return(Ok(result)); }
private ProfileAssessmentResponse(bool success, string message, ProfileWorkExperienceView profileWorkExperienceView) : base(success, message) { ProfileWorkExperienceView = profileWorkExperienceView; }
/// <summary> /// Creates a success response. /// </summary> /// <param name="profileWorkExperienceView">profileWorkExperienceView view model.</param> /// <returns>Response.</returns> public ProfileAssessmentResponse(ProfileWorkExperienceView profileWorkExperienceView) : this(true, string.Empty, profileWorkExperienceView) { }