Ritu Singh
Most unit test frameworks allow passing data to unit tests. In MSTest this is done using the DataRow attribute. You can pass different value combinations for campaign and status and check whether the resulting object's properties match what you expected.
You can test the method for different Campaign ID values like this
Testing Status is similar :
Answered by:> Panagiotis Kanavos
Credit:> Stack Overflow
Read more:
>Built Web API using ASP.NET (C#)
>Plugins and Presets for Vuejs project
>How to Create an array based on two other arrays in Php
>Testing react components using Hooks and Mocks
>Use Firebase Realtime Database with ASP.NET MVC App
>Setting up a Cloud Composer environment: Step-by-step guide