Пример #1
0
        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;
        }
Пример #2
0
 public void Initialize()
 {
     container = new NewsContainer("1ed506b2d88f4400a191fd29778cbbce");
 }
Пример #3
0
 public NewsController(INewsContainer container, ILoggging logger)
 {
     newsContainer = container;
     this.logger   = logger;
 }