public void NotDeleteIfNotPublished() { var tweet = new Tweet(); var tweetDeleted = tweet.Delete(); Check.That(tweetDeleted).Equals(new DeleteNotPossible()); }
public void RaiseTheEventweetDeletedWhenDelete() { var tweet = new Tweet(new List <IEvent> { new TweetPublished("s") }); var tweetDeleted = tweet.Delete(); Check.That(tweetDeleted).Equals(new TweetDeleted()); }
public void NotDeleteWhenTweetAlreadyDeleted() { var tweet = new Tweet(new List <IEvent> { new TweetPublished("s"), new TweetDeleted() }); var tweetDeleted = tweet.Delete(); // Check.That(tweetDeleted).Equals(new DeleteNotPossible()); }