Example #1
0
        public void ListForSale()
        {
            var result = _controller.ListForSale(new ListPropertyCommand {
                PropertyId = 3
            });

            Assert.IsAssignableFrom(typeof(RedirectToRouteResult), result);
            var viewResult = result as RedirectToRouteResult;

            Assert.True(viewResult.RouteValues.ContainsValue("MyProperties"));

            Assert.True(_context.Properties.Find(3).IsListedForSale);
        }