Skip to content

Latest commit

 

History

History

Unit Test Project for testing C# Sample Codes for Authorize.Net

[Build Status] (https://travis-ci.org/AuthorizeNet/sample-code-csharp)

This project is a unit test project which tests whether the C# sample codes are working as expected. If any of the unit tests fail the travis build will fail.

##Using the Sample Code Test project

The samples are all completely independent and self-contained so you can look at them to get a gist of how the method works, you can use the snippets to try in your own sample project, or you can run each sample from the command line.

##Running the Samples

  • Clone sample code repository.
  • Open the sample code project in visual studio.
  • Include the AuthorizeNet.dll present in bin/debug folder.
  • Include the SampleCode.dll present in bin/debug folder.
  • Include the Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll present in bin/debug folder.
  • Build the solution to produce latest SampleCode.dll.
  • Then go to test explorer where you will see the list of all the test cases.
  • Select "Run all tests" and monitor the output of tests.