예제 #1
0
        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);
        }
예제 #2
0
        public async Task <IActionResult> AddOrUpdateProfileWorkExperienceAsync([FromBody] ProfileWorkExperienceView model)
        {
            var result = await _service.AddOrUpdateProfileWorkExperienceAsync(model);

            return(Ok(result));
        }
예제 #3
0
 private ProfileAssessmentResponse(bool success, string message, ProfileWorkExperienceView profileWorkExperienceView) : base(success, message)
 {
     ProfileWorkExperienceView = profileWorkExperienceView;
 }
예제 #4
0
 /// <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)
 {
 }