private SessionManager() { IsFaked = false; IsPassed = true; SessionWorker = SessionWorker.Create(); Error = new SessionErrorHandle(); }
public void ValidateSession() { if (Session == null) { throw new ArgumentNullException("Session"); } IsPassed = SessionWorker.FindExists(Session); if (!IsPassed) { Error.ErrorCode = ErrorMapping.SESSION_0001; } if (IsFaked) { Error.ErrorCode = ErrorMapping.SESSION_0002; } }