Пример #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());
        }