Hello,
I downloaded your trial version to mock Entity Framework. Our model contains Function Imports (Stored Procedures) that return an generic object called ObjectResul. This object is a sealed with a internal constructor that contains internal objects as paramters. When I try to Mock this object I get using the folloing line of code :
var tmock = Mock.Create<ObjectResult<GetMedicationPlural_Result>>();
I get the following error:
Constructor on type 'System.Data.Objects.ObjectResult`1[[Mdrx.Note.Data.GetMedicationPlural_Result, NoteServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' not found.
Any suggestions ?
Thanks
I downloaded your trial version to mock Entity Framework. Our model contains Function Imports (Stored Procedures) that return an generic object called ObjectResul. This object is a sealed with a internal constructor that contains internal objects as paramters. When I try to Mock this object I get using the folloing line of code :
var tmock = Mock.Create<ObjectResult<GetMedicationPlural_Result>>();
I get the following error:
Constructor on type 'System.Data.Objects.ObjectResult`1[[Mdrx.Note.Data.GetMedicationPlural_Result, NoteServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' not found.
Any suggestions ?
Thanks