コード例 #1
0
        public void Details_Get_Object()
        {
            var actionResult = _warehouseController.Details(1);
            var viewResult = actionResult as ViewResult;
            var result = (Warehouse) viewResult.Model;

            Assert.AreEqual(ResourceData.Warehouses[0].City, result.City);
            Assert.AreEqual(1, result.Id);
            Assert.AreEqual(ResourceData.Warehouses[0].Name, result.Name);
        }