Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Unit Test for Summary Calculator
posted

I have created my own SummaryCalculators but want to be able to unit test them. Problem is that SummaryResult and DataRecord classes used the in the signature of the Aggregate method have private constructors. I can't simple make them null as I use the DataRecord in the SummaryCalculator, are there any test utils that can help create some instances?

  • 138253
    Offline posted

    Hello,

     

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can suggest you create a your own Record class which inherits the Infragistics Record and add a public constructor, which you can use in your tests. Please let me know if this helps you or you have further questions on this matter.

     

    Looking forward for your reply.