public void CallUpdateInAllService_WhenPutMatch() { var endpointString = "192.168.0.1-80"; var timestamp = new DateTime(2017, 01, 01); var matchInfo = new MatchInfo("TestMapA", "TestModeA", 20, 20, 12.345, new List <Score> { new Score("PlayerA", 20, 3, 1), new Score("PlayerB", 3, 1, 3) }); var match = new Match(endpointString, timestamp, matchInfo); _controller.RecalculateStatsByAdditionalMatch(match); A.CallTo(() => _serverStatisticService.Save(match)).MustHaveHappened(); A.CallTo(() => _playerStatisticService.Save(match)).MustHaveHappened(); }