public void When_acessing_name_it_should_pull_from_underlining_collection() { IStreamCollection fixture = new StreamCollection(_name); var collection = new TypedStreamCollection <StreamCollectionFixture>(fixture); // Act var name = collection.Name; // Assert name.Should().Be(_name); }
public TypedStreamCollection <RoomInfo> GetRoomInfoCollection() { IStreamCollection value; var results = _collectionDatabase.TryGetCollection("rocketchat_room", out value); if (!results) { return(null); } var typedCollection = new TypedStreamCollection <RoomInfo>(value); return(typedCollection); }
public TypedStreamCollection<RoomInfo> GetRoomInfoCollection() { IStreamCollection value; var results = _collectionDatabase.TryGetCollection("rocketchat_room", out value); if (!results) { return null; } var typedCollection = new TypedStreamCollection<RoomInfo>(value); return typedCollection; }