public void ResgistUserTest()
        {
            IService service = ServiceFactory.getInstance().getService(service_type.REGIST_USER);
            RegistUserRequest serviceRequest = new RegistUserRequest();
            UserInfo ui = new UserInfo();
            ui.username = "******";
            ui.password = "******";
            ui.phone = "12344525";
            ui.email = "*****@*****.**";

            serviceRequest.userinfo = ui;

            ServiceRequest request = new ServiceRequest(serviceRequest);
            ServiceResponse response = new ServiceResponse();
            service.process(request, response);

            Assert.AreEqual(0, response.returnCode);
        }
        public void ResgistUserTest1()
        {
            IService service = ServiceFactory.getInstance().getService(service_type.REGIST_USER);
            RegistUserRequest serviceRequest = new RegistUserRequest();

            UserInfo ui = new UserInfo();
            ui.username = "******";

            ui.phone = "12344525";
            ui.email = "*****@*****.**";

            serviceRequest.userinfo = ui;

            ServiceRequest request = new ServiceRequest(serviceRequest);
            ServiceResponse response = new ServiceResponse();
            service.process(request, response);

            Assert.AreEqual(-1, response.returnCode);
            Assert.AreEqual(ReportServiceMessage.USER_OR_PASSWORD_ILLEGAL, response.errMessage);
        }