Skip to content

Commit 1a8e19e

Browse files
joshkempnercondron
authored andcommitted
Add convenience method for getting a listener on the mock repo (#77)
1 parent 5047769 commit 1a8e19e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ReactiveDomain.Testing/Specifications/MockRepositorySpecification.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,12 @@ public virtual void ClearQueues()
3535
RepositoryEvents.Clear();
3636
TestQueue.Clear();
3737
}
38+
39+
public IListener GetListener(string name) =>
40+
new QueuedStreamListener(
41+
name,
42+
StreamStoreConnection,
43+
StreamNameBuilder,
44+
EventSerializer);
3845
}
3946
}

0 commit comments

Comments
 (0)