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; }; }
bool IPhoto.AddPhoto(Photo newPhoto) { return(MockAPI.AddPhoto(newPhoto)); }
List <PhotoTag> IPhotoTag.GetAllTags() { return(MockAPI.GetAllTags()); }
PhotoTag IPhotoTag.GetTagById(int id) { return(MockAPI.GetTagById(id)); }
PhotoTag IPhotoTag.UpdateTag(PhotoTag photoTag) { return(MockAPI.UpdateTag(photoTag)); }
bool IPhotoTag.AddTag(PhotoTag newPhotoTag) { return(MockAPI.AddTag(newPhotoTag)); }
List <Photo> IPhoto.GetAllPhotos() { return(MockAPI.GetAllPhotos()); }
Photo IPhoto.GetPhotoById(int id) { return(MockAPI.GetPhotoById(id)); }
int IPhoto.DeletePhoto(int id) { return(MockAPI.DeletePhoto(id)); }
Photo IPhoto.UpdatePhoto(Photo Photo) { return(MockAPI.UpdatePhoto(Photo)); }