コード例 #1
0
 public void CreateUserProfileTest()
 {
     ProfileBusiness target = new ProfileBusiness(); // TODO: Initialize to an appropriate value
     SessionInfo sessioninfo = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE userprofile = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE expected = null; // TODO: Initialize to an appropriate value
     MA_USER_PROFILE actual;
     actual = target.CreateUserProfile(sessioninfo, userprofile);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
コード例 #2
0
ファイル: ProfileUIP.cs プロジェクト: Theeranit/DealMarker
 public static object CreateProfile(SessionInfo sessioninfo, MA_USER_PROFILE record)
 {
     try
     {
         ProfileBusiness _profileBusiness = new ProfileBusiness();
         record.ID = Guid.NewGuid();
         record.LABEL = record.LABEL;
         record.ISACTIVE = record.ISACTIVE;
         var addedStudent = _profileBusiness.CreateUserProfile(sessioninfo, record);
         return new { Result = "OK", Record = addedStudent };
     }
     catch (Exception ex)
     {
         return new { Result = "ERROR", Message = ex.Message };
     }
 }