public void AddOrg()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Analysis/GeCarMonthAnaly",
                ParameterModel = dc
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
        public void GetOrgListByParam()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Org/GetOrgListByParam",
                ParameterModel = orgSel
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
        public void getManuOrgByOrgids()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Org/getManuOrgByOrgids",
                ParameterModel = "ksjdfladjkff"
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
        public void DelOrg()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Org/DelOrg",
                ParameterModel = "7468dfd6f5fb47a3af9216231dcfc60a"
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
Exemplo n.º 5
0
        public void UpdateRole()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Role/UpdateRole",
                ParameterModel = roleEdit
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
Exemplo n.º 6
0
        public void DelRole()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Role/DelRole",
                ParameterModel = "7dbf885a2c0a4ab3b5953acbacac74f3"
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
Exemplo n.º 7
0
        public void GetPermission()
        {
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Role/GetPermission",
                ParameterModel = "11010011"
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
Exemplo n.º 8
0
        public void GetHistoryCanInfo()
        {
            Dictionary <string, string> Dic = new Dictionary <string, string>();

            Dic.Add("vehicleId", "a7ac382fd42c4ac6b8953e1fc4bdfed4");
            Dic.Add("sTime", "2017-05-16 00:00:00");
            Dic.Add("eTime", "2017-05-16 23:59:59");
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/HistoryInfo/GetHistoryCanInfo",
                ParameterModel = Dic
            };
            var    result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");
            string k      = result.Result;
        }
        public void testLogin()
        {
            sys_user_info user = new sys_user_info();

            user.user_name = "Admin";
            user.password  = "******";
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/UserManage/AddUser",
                ParameterModel = user
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
        public void GetOrgTree()
        {
            Dictionary <string, string> param = new Dictionary <string, string>();

            param.Add("org_id", "ksjdfladjkff");
            param.Add("SelType", "3");
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/Org/GetOrgTree",
                ParameterModel = param
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }
Exemplo n.º 11
0
        public void GetCarStatusHistory()
        {
            //carId = "9fe1d63666ee4bc0ac55be0c197f3534";
            //Dictionary<string, string> Param = new Dictionary<string, string>();
            //Param.Add("carId", carId);
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/AgencyManage/GetTerminalTranferHistory",
                ParameterModel = CarId
            };
            var    result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");
            string k      = result.Result;

            //return result.Result;

            Assert.IsNotNull(result.Result);
        }
        public void testSendLoginCode()
        {
            sys_user_info user = new sys_user_info();

            //user.user_name = "Admin";
            //user.password = "******";
            user.phone = "18500315286";
            //string phone = ;

            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("phone", "18500315286");
            dic.Add("tpl", "4");
            var model = new SSInterfaceResultModel
            {
                ServiceURL     = GetBaseAddress() + "/api/ApiForMobile/SendLoginCode",
                ParameterModel = dic
            };
            var result = new SSInterfaceAction().Send(model, "UMLServiceKey", "a4478d501b74ee89cff5743cd920bc4f");

            Assert.IsNotNull(result.Result);
        }