feat(authentication): remove session wrapper for AuthenticationSession
This commit is contained in:
+14
-3
@@ -43,13 +43,24 @@ void main() {
|
||||
|
||||
when(() => authenticationRepository.sessionStream()).thenAnswer(
|
||||
(_) => Stream.fromIterable([
|
||||
SessionWrapper<int>(
|
||||
event: SignedInFromCacheEvent(account: account),
|
||||
session: Session<int>(account: account, data: 10),
|
||||
AuthenticationSession.fromEvent(
|
||||
SignedInFromCacheEvent(account: account),
|
||||
data: 10,
|
||||
)
|
||||
]),
|
||||
);
|
||||
|
||||
when(
|
||||
() => authenticationRepository.currentSession(),
|
||||
).thenAnswer(
|
||||
(_) async => Ok(
|
||||
AuthenticationSession.fromEvent(
|
||||
SignedInFromCacheEvent(account: account),
|
||||
data: 10,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
when(
|
||||
() => authenticationRepository.refresh(),
|
||||
).thenAnswer((_) async => Ok(account));
|
||||
|
||||
Reference in New Issue
Block a user