Ejemplo n.º 1
0
        public void NotDeleteIfNotPublished()
        {
            var tweet = new Tweet();

            var tweetDeleted = tweet.Delete();

            Check.That(tweetDeleted).Equals(new DeleteNotPossible());
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 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());
        }