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; }
public void HeaderClickIsDispatched() { // Arrange var dispatcher = new ColumnActionDispatcher(); bool header = false; dispatcher.HeaderClicked += (s, e) => header = true; // Act dispatcher.OnHeaderClicked(); // Assert Assert.IsTrue(header); }
public void BottomReachIsDispatched() { // Arrange var dispatcher = new ColumnActionDispatcher(); bool bottom = false; dispatcher.BottomReached += (s, e) => bottom = true; // Act dispatcher.OnBottomReached(); // Assert Assert.IsTrue(bottom); }