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
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hello,

I wrote an article for CodeProject where I tried to discuss a motivation to use AAA method introduced in TypeMock Isolator 5.0.

http://www.codeproject.com/KB/testing/F ... ation.aspx

Feedback is welcome!
asked by vagif (19.4k points)

2 Answers

0 votes
Hi Vagif,

Fantastic article. Well done! We need to promote it on our site.

Just an addition to the last part. When using RecursiveFakes you can do this:

Isolate.WhenCalled(() => dataLayer.GetCustomer(0).DateOfBirth).WillReturn(new DateTime(1970, 1, 1, 0, 0, 0));


And then you return the value you want!

Great article, thanks!
answered by gilz (14.5k points)
0 votes
Hi Gil,

Thanks for kind words. Feel free to quote or promote the article.

Regarding your suggestion: yes, we already exchanged a couple of messages at CodeProject, probably with your golleague. Apparently, the way he suggested to simplify setting DateOfBirth is not supported yet, but as you pointed out, things can be made simpler, so I don't need to create a Customer instance when using recursive fakes.

I am going to update an article within a day.

Vagif
answered by vagif (19.4k points)
...