public void validLogRequestDTO() { newLog = new LogRequestDTO(DTO.Constants.Constants.Sources.AdminDashboard, newUser.Id.ToString(), newSession.CreatedAt, newSession.ExpiresAt, newSession.UpdatedAt, newSession.Token); newLog = (LogRequestDTO)_tu.getLogContent(newLog); //Valid after initalization and retrieving auth contents Assert.IsTrue(newLog.isValid()); }
public void invalidLogRequestDTO() { newLog = new LogRequestDTO(); newLog.details = "Test details"; newLog.setSource(DTO.Constants.Constants.Sources.Session); newLog = (LogRequestDTO)_tu.getLogContent(newLog); Assert.IsFalse(newLog.isValid()); //No userId }