public ICollection <LogInfoDto> GetAllLogs() { authenticator.AuthenticateAdmin(); return(logRepo.GetAll() .Select(l => CreateDto(l)) .ToList()); }
public void AddLogTest() { repo.Add(log1); Assert.AreEqual(1, repo.GetAll().Count); }