public TweetViewItem(Tweet tweet, ILoadTweets parent, bool shouldBeSelected = true) { _parent = parent; Tweet = tweet; CreatedAtText = string.Format("Created at: {0}", tweet.CreatedAt.ToString(DateFormat)); SelectionVisibility = shouldBeSelected ? Visibility.Visible : Visibility.Collapsed; DeletionVisibility = shouldBeSelected ? Visibility.Collapsed : Visibility.Visible; DeleteCommand = new ActionCommand(_parent.Delete); }
public void TweetConstructorTest() { var tweet = new Tweet(); Assert.IsNotNull(tweet); }