コード例 #1
0
ファイル: Global.asax.cs プロジェクト: erikojebo/weenyboard
 private void RegisterCommandHandlers()
 {
     var commandDispatcher = ObjectRegistry.Instance.Resolve<ICommandDispatcher>();
     var persistentStoreCommandHandler = new PersistentStoreCommandHandler();
     commandDispatcher.RegisterHandler<UpdateItemDescriptionCommand>(persistentStoreCommandHandler);
     commandDispatcher.RegisterHandler<ChangeSwimLaneCommand>(persistentStoreCommandHandler);
 }
コード例 #2
0
 public void SetUp()
 {
     _repository = Substitute.For<IBoardRepository>();
     _handler = new PersistentStoreCommandHandler(_repository);
 }