public void SetUp()
 {
     _contextMock = new Mock<IDbContext>();
     var scores = new Collection<Score>{new Score{Assignment = new Assignment{Id = 1}}};
     _controller = new AssignmentsController(_contextMock.Object, new Participant{Id = 1, Scores = scores});
     MapperConfig.Configure();
 }
 public void SetConstructorWithoutGivenParticipantGivesInvalidOperationFromTest()
 {
     _controller = new AssignmentsController(_contextMock.Object);
 }