public void TestAddOrUpdateProfileEducation_ItShouldSetAddProfileEducation_Success() { var model = new ProfileEducationView() { ProfileId = 15996, OrganizationName = "New Test Org", IsStudied = true, CountryId = 10, DegreeLookupItemId = 56001, OrganizationId = 10, Year = "2019", FieldOfStudyString = "Field of study 1" }; var data = _assessmentService.AddOrUpdateProfileEducationAsync(model).Result; Assert.IsNotNull(data); }
public async Task <IActionResult> AddOrUpdateProfileEducationAsync([FromBody] ProfileEducationView model) { var result = await _service.AddOrUpdateProfileEducationAsync(model); return(Ok(result)); }
private ProfileAssessmentResponse(bool success, string message, ProfileEducationView profileEducationView) : base(success, message) { ProfileEducationView = profileEducationView; }
/// <summary> /// Creates a success response. /// </summary> /// <param name="profileEducationView">profileEducationView view model.</param> /// <returns>Response.</returns> public ProfileAssessmentResponse(ProfileEducationView profileEducationView) : this(true, string.Empty, profileEducationView) { }