Exemplo n.º 1
0
 private void RegisterCommandHandlers()
 {
     var commandDispatcher = ObjectRegistry.Instance.Resolve<ICommandDispatcher>();
     var persistentStoreCommandHandler = new PersistentStoreCommandHandler();
     commandDispatcher.RegisterHandler<UpdateItemDescriptionCommand>(persistentStoreCommandHandler);
     commandDispatcher.RegisterHandler<ChangeSwimLaneCommand>(persistentStoreCommandHandler);
 }
 public void SetUp()
 {
     _repository = Substitute.For<IBoardRepository>();
     _handler = new PersistentStoreCommandHandler(_repository);
 }