コード例 #1
0
        public async Task DataOperators_Operator()
        {
            var operatorResult = await CreateUser(operatorModel);

            var result = operatorController.DataOperators("") as PartialViewResult;

            Assert.IsNotNull(result);

            var model = (IndexViewModel <ViewOperatorModel>)result.Model;

            Assert.AreEqual(1, model.PageInfo.TotalItems);
            Assert.AreEqual(1, model.PageInfo.PageNumber);

            var opeartorInView = model.Models.FirstOrDefault();

            Assert.AreEqual("123456789", opeartorInView.ProfileUserUNP);
        }