Exemple #1
0
        private async Task RunAuthCreateTestCaseAsync(IRpcClient <AmpMessage> client)
        {
            string random = Guid.NewGuid().ToString("D");
            var    msg    = new UserReq()
            {
                Account  = random.Substring(10),
                Password = random
            };

            AuthServiceClient proxy = new AuthServiceClient(client);
            var rsp = await proxy.CreateAsync(msg, 6000000);

            if (rsp == null)
            {
                Logger.Error("response message is null!");
            }
            else if (rsp.Status != 0)
            {
                Logger.Error("return fail:{0}", rsp.Message);
            }
            Logger.Debug("AuthCreateTest Success");
        }