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); }
public ICollection <Message> LoadMessages() { return(_messageRepository.LoadMessages()); }