This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.
Learn more
Microsoft
Windows Dev Center
Windows Dev Center
Windows Dev Center
Home
Windows PCs
Docs
Downloads
Samples
Support
More
Dashboard
All Microsoft
Microsoft 365
Azure
Office 365
Dynamics 365
SQL
Windows 10
Products & Services
Windows Server
Enterprise Mobility + Security
Power BI
Teams
Visual Studio
Microsoft Advertising
Emerging Technologies
AI
Internet of Things
Azure Cognitive Services
Quantum
Microsoft HoloLens
Mixed Reality
Developer & IT
Docs
TechNet
Developer Network
Windows Dev Center
Windows IT Pro Center
FastTrack
Partner
Partner Network
Solution Providers
Partner Center
Cloud Hosting
Industries
Education
Financial services
Government
Health
Health
Retail
Other
Security
Licensing
AppSource
Azure Marketplace
Events
Research
View Sitemap
Search
Cancel
Sign in
Dev Center - Desktop
>
Samples
>
Testing WCF services with external dependencies
Get SDK and tools
Quick access
My samples
Upload a sample
Browse sample requests
Testing WCF services with external dependencies
This sample shows how a WCF instance provider can be used to create "unit" tests for a WCF service which has external dependencies.
Download
C# (46.4 KB)
Ratings
4.5 Star
(2)
Downloaded
2,129 times
Favorites
Add to favorites
Requires
Visual Studio 2010
Updated
5/31/2011
License
Apache License, Version 2.0
Share
Technologies
WCF
Topics
WCF
,
WCF Extensibility
Report abuse to Microsoft
Description
Browse code
Q and A (1)
Solution explorer
C#
PricingService.Test
Properties
AssemblyInfo.cs
AnyInstance.cs
MockProductRepository.cs
PricingService.Test.csproj
PricingServiceInWCFTest.cs
PricingServiceTest.cs
PricingService
Properties
AssemblyInfo.cs
app.config
DataContracts.cs
FileBasedProductRepository.cs
InstanceProviderBehavior.cs
IPricingService.cs
IProductRepository.cs
PricingService.cs
PricingService.csproj
ProductRepositoryFactory.cs
Program.cs
Local.testsettings
TestableWcfServices.sln
TestableWcfServices.vsmdi
TraceAndTestImpact.testsettings
Click an item in the panel on the left to view the contents here.