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;
            };
        }
Пример #2
0
        public ThreadPage(ThreadViewModel model)
        {
            Model = model;

            this.InitializeComponent();
        }