예제 #1
0
        public void NotDeleteIfNotPublished()
        {
            var tweet = new Tweet();

            var tweetDeleted = tweet.Delete();

            Check.That(tweetDeleted).Equals(new DeleteNotPossible());
        }
예제 #2
0
        public void RaiseTheEventweetDeletedWhenDelete()
        {
            var tweet = new Tweet(new List <IEvent> {
                new TweetPublished("s")
            });
            var tweetDeleted = tweet.Delete();

            Check.That(tweetDeleted).Equals(new TweetDeleted());
        }
예제 #3
0
        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());
        }