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;
            };
        }
Exemple #2
0
 bool IPhoto.AddPhoto(Photo newPhoto)
 {
     return(MockAPI.AddPhoto(newPhoto));
 }
Exemple #3
0
 List <PhotoTag> IPhotoTag.GetAllTags()
 {
     return(MockAPI.GetAllTags());
 }
Exemple #4
0
 PhotoTag IPhotoTag.GetTagById(int id)
 {
     return(MockAPI.GetTagById(id));
 }
Exemple #5
0
 PhotoTag IPhotoTag.UpdateTag(PhotoTag photoTag)
 {
     return(MockAPI.UpdateTag(photoTag));
 }
Exemple #6
0
 bool IPhotoTag.AddTag(PhotoTag newPhotoTag)
 {
     return(MockAPI.AddTag(newPhotoTag));
 }
Exemple #7
0
 List <Photo> IPhoto.GetAllPhotos()
 {
     return(MockAPI.GetAllPhotos());
 }
Exemple #8
0
 Photo IPhoto.GetPhotoById(int id)
 {
     return(MockAPI.GetPhotoById(id));
 }
Exemple #9
0
 int IPhoto.DeletePhoto(int id)
 {
     return(MockAPI.DeletePhoto(id));
 }
Exemple #10
0
 Photo IPhoto.UpdatePhoto(Photo Photo)
 {
     return(MockAPI.UpdatePhoto(Photo));
 }