/WCFService-with-Unit-test

Windows Communication Foundation Service with Unit test

Primary LanguageC#

WCFService-with-Unit-test

In this Repo, you will see two C# projects, wcfservicedemo is a basic web form service including main code and data table, and WcfServiceDemoTests is an MSTEST executor, which can contain units test for GetDate and InsertData functions.

image

Requirements + Versions

Visual Studio 2022 .NET V4.8

How to open project WcfServiceDemo

  1. Right click on project WcfServiceDemo and rebuld the solution.
  2. Use Debug mode to run
  3. The web service of InsertData will be open on http://localhost:52411/InsertData.aspx

image

Unit test Example

  1. Right click on project WcfServiceDemoTests and rebuld the solution.
  2. Open Test Explorer (go to Test > Test Explorer).
  3. Click Run All to execute your tests and view test results in the Test Explorer window.

image