public DLiveStreamProvider( DLiveGraphQLGateway dliveApi, DLiveStreamMapper streamMapper, DLiveChannelMapper channelMapper ) { this.dliveApi = dliveApi; this.streamMapper = streamMapper; this.channelMapper = channelMapper; }
public void Setup() { var dliveStreams = new List <DLiveStreamItemDto> { new DLiveStreamItemDto { title = "test stream", thumbnailUrl = "http://thunmbnail.url", watchingCount = 1, creator = new DLiveUserDto { displayName = "TestUserA", avatar = "http://avatar.url" } }, }; streamSearchResults = MaybeResult <IEnumerable <DLiveStreamItemDto>, StreamProviderError> .Success(dliveStreams); dliveStreamMapper = new DLiveStreamMapper(dliveUrl); }