public function testDeletesBySessionToken() { $userId = 123; $token = 'my special token'; $expectedSession = new WebServiceUserSession($userId); $expectedSession->SessionToken = $token; $expectedSession->UserId = $userId; $this->repo->Delete($expectedSession); $command = new DeleteUserSessionCommand($token); $this->assertEquals($command, $this->db->_LastCommand); }
public function getUserSession($token) { return $this->userSessionRepository->getUserSession($token); }