public IHttpActionResult GetVerifyForTier1([FromBody] Tier1Param param)
 {
     try
     {
         if (log.IsDebugEnabled)
         {
             log.Debug("GetVerifyForTier1 Call Recevied, parameters:" + param);
         }
         _userTierLevelApplicationService.ApplyForTier1Verification(new VerifyTier1Command(param.PhoneNumber,
                                                                                           HeaderParamUtility.GetApikey(Request), param.FullName, Convert.ToDateTime(param.DateOfBirth)));
         return(Ok());
     }
     catch (InvalidOperationException exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("GetVerifyForTier1 Call Exception ", exception);
         }
         return(BadRequest(exception.Message));
     }
     catch (InvalidCredentialException exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("GetVerifyForTier1 Call Exception ", exception);
         }
         return(BadRequest(exception.Message));
     }
     catch (ArgumentNullException exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("GetVerifyForTier1 Call Exception ", exception);
         }
         return(BadRequest(exception.Message));
     }
     catch (Exception exception)
     {
         if (log.IsErrorEnabled)
         {
             log.Error("GetVerifyForTier1 Call Exception ", exception);
         }
         return(InternalServerError());
     }
 }
        public void ApplyForTier1()
        {
            IUserApplicationService         userApplicationService         = (IUserApplicationService)_applicationContext["UserApplicationService"];
            IRegistrationApplicationService registrationApplicationService =
                (IRegistrationApplicationService)_applicationContext["RegistrationApplicationService"];
            IUserRepository            userRepository     = (IUserRepository)_applicationContext["UserRepository"];
            IPasswordEncryptionService passwordEncryption =
                (IPasswordEncryptionService)_applicationContext["PasswordEncryptionService"];

            string username = "******";
            string email    = "*****@*****.**";

            registrationApplicationService.CreateAccount(new SignupUserCommand(email, username, "burnitdown", "USA", TimeZone.CurrentTimeZone, ""));
            IUserTierLevelApplicationService tierLevelApplicationService =
                _applicationContext["UserTierLevelApplicationService"] as IUserTierLevelApplicationService;

            tierLevelApplicationService.ApplyForTier1Verification(new VerifyTier1Command("1234", "123", "123", DateTime.Today));
            //TODO: have to modify the test and test case name.
        }