/V2.2/trunk/Quickstarts/UI Composition/ViewInjection/Desktop/UIComposition.Modules.Project.Tests/Mocks/MockProjectService.cs
C# | 38 lines | 20 code | 2 blank | 16 comment | 0 complexity | 263c93c3e71d891db4903a5c62895c5e 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 System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using UIComposition.Modules.Project.Services;
- using System.Collections.ObjectModel;
-
- namespace UIComposition.Modules.Project.Tests.Mocks
- {
- class MockProjectService : IProjectService
- {
- public bool RetrieveProjectsCalled;
- public int EmployeeId;
-
- public ObservableCollection<BusinessEntities.Project> RetrieveProjects(int employeeId)
- {
- RetrieveProjectsCalled = true;
- EmployeeId = employeeId;
- return new ObservableCollection<BusinessEntities.Project>();
- }
- }
- }