public void Initialize() { var newsContainerMock = new Mock <INewsContainer>(); var mockNewsItem = new Mock <INewsItem>(); newsContainerMock.Setup(n => n.GetLatestNews()).Returns(new List <INewsItem> { mockNewsItem.Object }); newsContainer = newsContainerMock.Object; }
public void Initialize() { container = new NewsContainer("1ed506b2d88f4400a191fd29778cbbce"); }
public NewsController(INewsContainer container, ILoggging logger) { newsContainer = container; this.logger = logger; }