public void SetUp() { _context = Substitute.For <IOrangeBricksContext>(); _properties = Substitute.For <IDbSet <Domain.Models.Property> >(); _context.Properties.Returns(_properties); _handler = new ListPropertyCommandHandler(_context); }
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); }