コード例 #1
0
ファイル: MessageController.cs プロジェクト: palutz/sgmockup
        /// <summary>
        /// 
        /// </summary>
        /// <param name="scenario"></param>
        /// <returns></returns>
        private OperativeMsg CreateMsg310(string scenario)
        {
            OpMsg310 ret = new OpMsg310();

            ret.GameId = RandomIntDigit(10);
            ret.MsgAction1 = ret.MsgAction2 = String.Empty;
            if(scenario.Equals("a", StringComparison.InvariantCultureIgnoreCase))
                ret.MsgAction2 = new Random().Next(0, 1).ToString();
            else
                ret.MsgAction1 = new Random().Next(0, 1).ToString();
            ret.CodeId = RandomStrDigit(11);
            ret.LocationId = RandomStrDigit(12);
            return ret;
        }
コード例 #2
0
 //
 // GET: /MsgProcessed310/Details/5
 public ActionResult Details(OpMsg310 msgReceived)
 {
     ViewData["Message"] = TempData["msg"];
     return View();
 }