public NewsControllerTests() { mapper = Substitute.For <IMapper>(); rssFeedProvider = Substitute.For <IRssFeedProvider>(); subscriptionRepository = Substitute.For <IAsyncRepository <NewsFeedSubscription> >(); newsFeedSubscriptions = new List <NewsFeedSubscription>() { new NewsFeedSubscription() { Id = 1, Name = "test feed 1", Url = "example.com" }, new NewsFeedSubscription() { Id = 2, Name = "test feed 2", Url = "example2.com" } }; }
public RssFeedController(IRssFeedProvider rssFeedProvider) { this._rssFeedProvider = rssFeedProvider; }
public NewsController(IMapper mapper, IRssFeedProvider feedProvider, IAsyncRepository <NewsFeedSubscription> subscriptionRepository) { this.mapper = mapper; this.feedProvider = feedProvider; this.subscriptionRepository = subscriptionRepository; }
public FeedController(IRssFeedProvider rssFeedProvider) { _rssFeedProvider = rssFeedProvider; }