コード例 #1
0
        public void GivenMessageQuackedThenGetDescriptionThenReturnMessageDescription()
        {
            var messageQuacked = new MessageQuacked(MessageId.Generate(), new UserId("*****@*****.**"), "Hello");

            _eventsStore.Store(messageQuacked);

            var description = _repository.GetDescription(messageQuacked.Id);

            Check.That(description.Author).IsEqualTo(messageQuacked.Author);
            Check.That(description.Content).IsEqualTo(messageQuacked.Content);
        }