Esempio n. 1
0
        public UserSubPage(string title, Func <Task <IEnumerable <object> > > loadAction, Func <Task <IEnumerable <object> > > loadMoreAction, int count)
            : this(title, loadAction, count)
        {
            LoadMoreAction = loadMoreAction;

            ActionDispatcher = new ColumnActionDispatcher();
            ActionDispatcher.BottomReached += ActionDispatcher_BottomReached;
        }
Esempio n. 2
0
        public void HeaderClickIsDispatched()
        {
            // Arrange
            var  dispatcher = new ColumnActionDispatcher();
            bool header     = false;

            dispatcher.HeaderClicked += (s, e) => header = true;

            // Act
            dispatcher.OnHeaderClicked();

            // Assert
            Assert.IsTrue(header);
        }
Esempio n. 3
0
        public void BottomReachIsDispatched()
        {
            // Arrange
            var dispatcher = new ColumnActionDispatcher();

            bool bottom = false;

            dispatcher.BottomReached += (s, e) => bottom = true;

            // Act
            dispatcher.OnBottomReached();

            // Assert
            Assert.IsTrue(bottom);
        }