Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm using SAPNcoconnector libraries to fetch the data from SAP server. I'm trying to create nUnit test cases for this.

In the below example when I tried to access Repository property it is throwing exception because I've provide dummy SAP credentials and I've created dest object with dummy data.

C#
var repo = dest.Repository; //Dummy RfcDestination object

if (repo == null)
   return;

var rfcFunction = repo.CreateFunction(Constants.RfcReadTable);


I want to mock these RfcDestination method calls and fetch the default data, Please let me know how to proceed.

Thanks
Baba
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900