public void Should_CreateNewsForUsers()
{
// arrange
User creator = new User{UserName = "Creator", Id = 1};
User collaborator = new User { UserName = "Collaborator", Id = 2 };
this.projectProcessorMock.Setup(it => it.GetUsersAndCreatorInProject(1)).Returns(value: new List<User> {creator, collaborator});
HumanTaskHistory taskHistory = new HumanTaskHistory
{
Id = 1,
Action = "Create"
};
// act
this.newsProcessor.CreateNewsForUsersInProject(taskHistory,1);
// assert
this.newsRepositoryMock.Verify(it => it.AddNews(It.IsAny<News>()), Times.Exactly(2));
}