示例#1
0
        public void LoadMessages()
        {
            // Arrange
            var createdMessage = new Message()
            {
                Content = "LoadMessages"
            };

            _dbContext.Set <Message>().Add(createdMessage);
            _dbContext.SaveChanges();

            // Act
            var messages = _dao.LoadMessages();

            // Assert
            Assert.Contains(createdMessage, messages);
        }
示例#2
0
 public ICollection <Message> LoadMessages()
 {
     return(_messageRepository.LoadMessages());
 }