Пример #1
0
        public void ChangeStatusIfDataIsNotNullTest()
        {
            var data = new ChangeStatusViewModel()
            {
                Id       = 2,
                StatusId = 2
            };

            var result = _orderController.ChangeStatus(data) as RedirectToRouteResult;

            Assert.AreEqual("Index", result.RouteValues["action"]);
        }