Exemple #1
0
        public GetChannelItemResponse GetChannelItem(string channelItemId)
        {
            var repository = new GetChannelItemMongoDatabaseRepository(this.GetMongoDatabase());
            var interactor = new GetChannelItemInteractor(repository);

            var response = interactor.Execute(channelItemId);

            response.ChannelItemId = channelItemId;
            return(response);
        }
Exemple #2
0
        public void InteractorReturnsEmptyResponseByDefault()
        {
            var response = interactor.Execute(string.Empty);

            var expectedResponse = new GetChannelItemResponse();

            Assert.Equal(
                JsonConvert.SerializeObject(expectedResponse),
                JsonConvert.SerializeObject(response)
                );
        }