public void AddsNewContributionToConversation()
            {
                HandleMessage(contributionRequest);
                Conversation  contributionConversation = ConversationRepository.FindEntityById(contributionRequest.Contribution.ConversationId);
                IContribution lastContributionAdded    = contributionConversation.LastContribution;

                Assert.IsTrue(lastContributionAdded.ContributorUserId.Equals(contributionRequest.Contribution.ContributorUserId));
            }
            public void NewContributionGetsAssignedId()
            {
                HandleMessage(contributionRequest);
                Conversation  contributionConversation = ConversationRepository.FindEntityById(contributionRequest.Contribution.ConversationId);
                IContribution lastContributionAdded    = contributionConversation.LastContribution;

                Assert.IsTrue(lastContributionAdded.Id != 0);
            }
        public void AddConversationEntityTest()
        {
            var conversation           = new Conversation(1);
            var conversationRepository = new ConversationRepository();

            conversationRepository.AddEntity(conversation);
            Assert.AreEqual(conversation, conversationRepository.FindEntityById(conversation.Id));
        }