public void Setup() { var navigation = new MockNavigation(); var threadId = new ThreadId(new BoardId("test"), 123456); api = new MockAPI() { Id = threadId }; thread = new ThreadViewModel(navigation, api); thread.Posts.CollectionChanged += (send, arg) => { if (arg.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset) postsCleared = true; }; }
public ThreadPage(ThreadViewModel model) { Model = model; this.InitializeComponent(); }