// Use this for initialization
 void Start()
 {
     // Start with 3 agents initialized
     vipController = FindObjectOfType <VIPController>();
     viewPort      = new Vector2[4];
     spawnTimer    = 0.0f;
     selectedAgent = agents[0];
 }
示例#2
0
        public void Club_ShouldRenderTheRightViewModel()
        {
            //Arrange
            var controller = new VIPController();
            //Act
            var result = controller.Club();

            //Assert
            result.AssertViewRendered().WithViewData <EmptyViewModel>();
        }
示例#3
0
    // Use this for initialization
    void Start()
    {
        vip          = FindObjectOfType <VIPController>();
        vipTransform = vip.transform;

        isHoldingObject = false;
        isFollowing     = false;
        ui               = FindObjectOfType <UI>();
        currentHealth    = health;
        rb2d             = GetComponent <Rigidbody2D>();
        animator         = GetComponent <Animator>();
        playerController = FindObjectOfType <PlayerController>();
        timer            = walkTimer;
        beginPosition    = transform.position;
        animator.SetTrigger("WalkDown");
        targetPosition = transform.position + reposition;
    }
示例#4
0
        public void UpGradeVIPTest()
        {
            VIPController vip = new VIPController();
            //ActionResult result = vip.UpGradeVIP("aa", "011c7a5f-c201-4906-ac4c-6a0ee5372c7a");

            //OrderBLL bll = new OrderBLL();
            //string s = bll.CreateOrderCode("291afe55-6091-49ba-842b-de4b4aeffce7");
            //int leng = s.Length;
            //ActionResult obj = vip.Refund("2018112011422870401f1704d38996", "01f1704d-fd1f-409d-a3d1-eb23f2fd64");

            //ActionResult result = vip.CreateByWeChatPhone("f9df854b-24d5-4d09-bd9e-cf4147cec35e", "", "15521116670", "", "111111");

            MReqVipCardList req = new MReqVipCardList()
            {
                filter   = "1562356",
                Page     = 1,
                PageSize = 2
            };
            //ActionResult result = vip.Index(JsonConvert.SerializeObject(req));
        }