/V2.2/trunk/RI/Desktop/StockTraderRI.Modules.News.Tests/Mocks/MockNewsReaderView.cs
C# | 44 lines | 23 code | 5 blank | 16 comment | 0 complexity | 5d63589c58ee7f53b9a28ff3134884c5 MD5 | raw file
- //===================================================================================
- // Microsoft patterns & practices
- // Composite Application Guidance for Windows Presentation Foundation and Silverlight
- //===================================================================================
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
- // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
- // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
- // FITNESS FOR A PARTICULAR PURPOSE.
- //===================================================================================
- // The example companies, organizations, products, domain names,
- // e-mail addresses, logos, people, places, and events depicted
- // herein are fictitious. No association with any real company,
- // organization, product, domain name, email address, logo, person,
- // places, or events is intended or should be inferred.
- //===================================================================================
- using StockTraderRI.Infrastructure.Models;
- using StockTraderRI.Modules.News.Article;
-
- namespace StockTraderRI.Modules.News.Tests.Mocks
- {
- internal class MockNewsReaderView : INewsReaderView
- {
- public bool ShowViewWasCalled { get; private set; }
-
- private NewsArticle model;
-
- public void ShowView()
- {
- this.ShowViewWasCalled = true;
- }
-
- public NewsArticle Model
- {
- get { return this.model; }
- set { this.model = value; }
- }
-
- public void SetNewsArticle(NewsArticle article)
- {
- this.Model = article;
- }
- }
- }