コード例 #1
0
        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);
        }
コード例 #2
0
        public async Task <IActionResult> AddOrUpdateProfileEducationAsync([FromBody] ProfileEducationView model)
        {
            var result = await _service.AddOrUpdateProfileEducationAsync(model);

            return(Ok(result));
        }
コード例 #3
0
 private ProfileAssessmentResponse(bool success, string message, ProfileEducationView profileEducationView) : base(success, message)
 {
     ProfileEducationView = profileEducationView;
 }
コード例 #4
0
 /// <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)
 {
 }