04-13-2018 07:07 AM
Hi
Does there exists any c# DACmx mock objects that can be used for unit testing in .net c#?
Best Regards
Solved! Go to Solution.
04-18-2018 07:42 PM
Dah, I have had this same question as well and my research tells me no. I began some major refactoring recently and realized how many dependencies I had on DAQmx objects littered throughout my code base. To make your code that uses DAQmx objects more testable, I have found it useful to apply something like the Facade design pattern to my software. This allows me to isolate NI dependencies in a single place and while enabling interaction with DAQmx or TDMS objects in an abstract fashion via the Facade class.