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); }
public void InteractorReturnsEmptyResponseByDefault() { var response = interactor.Execute(string.Empty); var expectedResponse = new GetChannelItemResponse(); Assert.Equal( JsonConvert.SerializeObject(expectedResponse), JsonConvert.SerializeObject(response) ); }