public void ArchiveLog_Succeesfully() { var user = GetUser(); LogRepository.Setup(x => x.GetById(It.IsAny <int>())).Returns(GetLog()); LogRepository.Setup(x => x.Update(It.IsAny <Log>())); var service = new LogService(LogRepository.Object, UserRepository.Object); service.ArchiveLog(1); }