private void SetupHandler(IList<BoardEntity> boards,
            IList<BoardColumnEntity> boardColumns,
            IList<BoardTaskEntity> boardTasks)
        {
            mockDataContext = new Mock<IDataContext>();

            var fakeBoardDbSet = new FakeDbSet<BoardEntity>();
            boards.ToList().ForEach(x => fakeBoardDbSet.Add(x));
            mockDataContext.Setup(x => x.Set<BoardEntity>()).Returns(fakeBoardDbSet);

            var fakeBoardColumnDbSet = new FakeDbSet<BoardColumnEntity>();
            boardColumns.ToList().ForEach(x => fakeBoardColumnDbSet.Add(x));
            mockDataContext.Setup(x => x.Set<BoardColumnEntity>()).Returns(fakeBoardColumnDbSet);

            var fakeBoardTaskDbSet = new FakeDbSet<BoardTaskEntity>();
            boardTasks.ToList().ForEach(x => fakeBoardTaskDbSet.Add(x));
            mockDataContext.Setup(x => x.Set<BoardTaskEntity>()).Returns(fakeBoardTaskDbSet);

            handler = new DeleteBoardColumnCommandHandler(mockDataContext.Object);
        }
        private void SetupHandler(IList <BoardEntity> boards,
                                  IList <BoardColumnEntity> boardColumns,
                                  IList <BoardTaskEntity> boardTasks)
        {
            mockDataContext = new Mock <IDataContext>();

            var fakeBoardDbSet = new FakeDbSet <BoardEntity>();

            boards.ToList().ForEach(x => fakeBoardDbSet.Add(x));
            mockDataContext.Setup(x => x.Set <BoardEntity>()).Returns(fakeBoardDbSet);

            var fakeBoardColumnDbSet = new FakeDbSet <BoardColumnEntity>();

            boardColumns.ToList().ForEach(x => fakeBoardColumnDbSet.Add(x));
            mockDataContext.Setup(x => x.Set <BoardColumnEntity>()).Returns(fakeBoardColumnDbSet);

            var fakeBoardTaskDbSet = new FakeDbSet <BoardTaskEntity>();

            boardTasks.ToList().ForEach(x => fakeBoardTaskDbSet.Add(x));
            mockDataContext.Setup(x => x.Set <BoardTaskEntity>()).Returns(fakeBoardTaskDbSet);

            handler = new DeleteBoardColumnCommandHandler(mockDataContext.Object);
        }