public void CreateTestData()
        {
            this.DeleteTestData();
            var blackBox = new FileBlackBox("CardStore");

            this.provider = new EventstoreBoardprovider(blackBox);
        }
 public void CreateTestData()
 {
     this.DeleteTestData();
     var blackBox = new FileBlackBox("CardStore");
     this.provider = new EventstoreBoardprovider(blackBox);
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BoardController"/> class.
 /// </summary>
 /// <param name="board">
 /// The board.
 /// </param>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="portal">
 /// The portal.
 /// </param>
 public BoardController2(IBoard2 board, IBoardProvider2 provider)
 {
     this._board    = board;
     this._provider = provider;
 }
示例#4
0
 private static void Start(IBoardProvider2 prov, IBoardPortal portal)
 {
     var cards = prov.Load_all_cards();
     portal.Display_cards(cards);
 }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BoardController"/> class.
 /// </summary>
 /// <param name="board">
 /// The board.
 /// </param>
 /// <param name="provider">
 /// The provider.
 /// </param>
 /// <param name="portal">
 /// The portal.
 /// </param>
 public BoardController2(IBoard2 board, IBoardProvider2 provider)
 {
     this._board = board;
     this._provider = provider;
 }
示例#6
0
        private static void Start(IBoardProvider2 prov, IBoardPortal portal)
        {
            var cards = prov.Load_all_cards();

            portal.Display_cards(cards);
        }