Exemplo n.º 1
0
 public void SetUp()
 {
     _context    = Substitute.For <IOrangeBricksContext>();
     _properties = Substitute.For <IDbSet <Domain.Models.Property> >();
     _context.Properties.Returns(_properties);
     _handler = new ListPropertyCommandHandler(_context);
 }
Exemplo n.º 2
0
        public ActionResult ListForSale(ListPropertyCommand command)
        {
            var handler = new ListPropertyCommandHandler(_context);

            handler.Handle(command);

            return(RedirectToAction("MyProperties"));
        }
 public void SetUp()
 {
     base.SetUp();
     _handler = new ListPropertyCommandHandler(_context);
 }