chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
can someone tell me what am i missing?
EcmsList returnValue = new EcmsList();
            using (RecordExpectations expectations = RecorderManager.StartRecording())
            {
                expectations.ExpectAndReturn(EcmsListDaoBase.Instance.GetListById(Guid.Empty), returnValue);
            }

why the getlistbyid is being called?
asked by (28.8k points)

4 Answers

0 votes
Hi,

Not from just this code. :lol:
Can you post the class, and the singleton? (I'm guessing it's a singleton).

Also there might be something looming inside a static constructor somewhere. A full (yet small) reproduction can help. If this is not possible, let us know and we'll take it offline.
answered by (14.5k points)
0 votes
Hi Tolisss

Have you resolved your issue?
If you haven't please post the code, so we can get you on your way.
answered by (14.5k points)
0 votes
hi

yes sometimes natural mocks do not work as expected but reflective does the job.

i have not a simple sample to post yet but i will as soon as i get one
answered by (28.8k points)
0 votes
Hi Tolisss,

Are there any news on this? We'd really like to see a sample.

Thanks,
answered by (14.5k points)
...