示例#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);
        }
示例#2
0
        public void InteractorReturnsEmptyResponseByDefault()
        {
            var response = interactor.Execute(string.Empty);

            var expectedResponse = new GetChannelItemResponse();

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