mardi 22 décembre 2015

How to put objects inside objects while unit testing using Rhino

I have a scenario where I have an object A and that contains another object B and that contains an array of object type of C and then a property inside that C.

so basically its like

fromInput.A.B.C

C is of array type.

In my code I have a switch case like this:

foreach (var m in fromInput.A.B.C[0].D) { switch (D.State.Value.Name) { case "TN":

How to create objects for this case?

Could someone please help me

Aucun commentaire:

Enregistrer un commentaire