tag:blogger.com,1999:blog-2724692278714295115.comments2023-06-05T03:36:07.247-07:00Richie's WorldRichard Allenhttp://www.blogger.com/profile/03057437496497128384noreply@blogger.comBlogger85125tag:blogger.com,1999:blog-2724692278714295115.post-76717323514439447882013-09-16T03:15:36.857-07:002013-09-16T03:15:36.857-07:00Helped me too. ThanksHelped me too. ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-12649913909652000942013-07-04T00:05:08.661-07:002013-07-04T00:05:08.661-07:00Thanks for the Solution ,if i change the version t...Thanks for the Solution ,if i change the version to v7.1 in command prompt than its works fine.Anonymoushttps://www.blogger.com/profile/08003322327908517503noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-9306445107232615362013-07-04T00:03:01.235-07:002013-07-04T00:03:01.235-07:00Thanks for the solution it works....Thanks for the solution it works....Anonymoushttps://www.blogger.com/profile/08003322327908517503noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-1158744586914050382013-04-07T21:39:54.498-07:002013-04-07T21:39:54.498-07:00Thanks . It is very helpful for me .Thanks . It is very helpful for me .sunil prasadhttps://www.blogger.com/profile/14752299604550098146noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-87239515645287637602012-05-02T02:39:06.885-07:002012-05-02T02:39:06.885-07:00I think this post could really help me in my curre...I think this post could really help me in my current role ;)Dan Meineckhttps://www.blogger.com/profile/09544777589823322990noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-53486414259466069612012-04-18T08:29:39.538-07:002012-04-18T08:29:39.538-07:00Just came here by Google because I had exactly the...Just came here by Google because I had exactly the same problem. Simple solution which worked perfectly for me! Thank you very much!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-78337341657328377772012-03-12T05:51:11.959-07:002012-03-12T05:51:11.959-07:00Thanks for this blog.
Restarting VS did not reset...Thanks for this blog.<br /><br />Restarting VS did not reset the test for me, and I simply couldn't figure out what the problem was.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-61236948225849759352012-02-13T03:44:33.664-08:002012-02-13T03:44:33.664-08:00Unfortunately I do not know of a free alternative ...Unfortunately I do not know of a free alternative to TypeMock - although I believe that Telerik's JustMock might provide similar behaviour but that is not free either. If you do find one then let me know :-)Richard Allenhttps://www.blogger.com/profile/03057437496497128384noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-58119433370430851832012-02-10T03:02:49.124-08:002012-02-10T03:02:49.124-08:00Is there any other Mocking framework you can use b...Is there any other Mocking framework you can use besides Type Mock Isolator that is for free?Donny Brascohttps://www.blogger.com/profile/05988919632335140929noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-43604659743742078902011-11-15T17:04:23.165-08:002011-11-15T17:04:23.165-08:00Awesome! thanks, you just saved me no end of pain!...Awesome! thanks, you just saved me no end of pain!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-26921284285777868302011-11-04T09:25:53.121-07:002011-11-04T09:25:53.121-07:00Yes to be fair restarting VS2010 would do it but m...Yes to be fair restarting VS2010 would do it but maybe a little bit of overkill :-)Richard Allenhttps://www.blogger.com/profile/03057437496497128384noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-48931870077847056022011-11-04T07:42:21.573-07:002011-11-04T07:42:21.573-07:00Restarting VS2010 seems to reset this problem as w...Restarting VS2010 seems to reset this problem as well.Kevin Driedgerhttps://www.blogger.com/profile/07354289344595303603noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-51364113420903640182011-09-08T03:09:53.370-07:002011-09-08T03:09:53.370-07:00thanks a bunch mate, that really helped!thanks a bunch mate, that really helped!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-50641509402644352722011-07-26T05:08:54.222-07:002011-07-26T05:08:54.222-07:00thanksthanksRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-80321395798930648682011-07-26T05:08:38.187-07:002011-07-26T05:08:38.187-07:00thanks
Rahul Mehtathanks<br />Rahul MehtaRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-62387178300514535072011-07-26T05:07:00.821-07:002011-07-26T05:07:00.821-07:00thanks a lotthanks a lotRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-86913548770637111362011-07-26T05:06:12.634-07:002011-07-26T05:06:12.634-07:00thanks matethanks mateRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-76282549013560812342011-07-26T05:05:40.754-07:002011-07-26T05:05:40.754-07:00thanks mate...it helpsthanks mate...it helpsRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-7708518756540709322011-07-26T05:05:21.980-07:002011-07-26T05:05:21.980-07:00good and thanks...helped megood and thanks...helped meRahul Mehtahttps://www.blogger.com/profile/03025832260031267941noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-78534089194079181232011-07-20T05:33:48.461-07:002011-07-20T05:33:48.461-07:00you made my day after hours of despair. re-adding ...you made my day after hours of despair. re-adding [TestMethod()] to all the test methods is the key... thx for that!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-77251652214756463252011-03-11T13:47:48.157-08:002011-03-11T13:47:48.157-08:00Thank you for this post! Spent most of my Friday ...Thank you for this post! Spent most of my Friday afternoon trying to figure this out before finding this solution.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-15535124413031673412011-01-07T10:21:44.235-08:002011-01-07T10:21:44.235-08:00Hi Rich,
Long time no speak; I hope you are well....Hi Rich,<br /><br />Long time no speak; I hope you are well.<br /><br />I too am continuing to struggle with the best way to unit test, because of data access. I think what Dave.Erwin said is relevant not (just?) because of testing the data access, but because of creating an object to test.<br /><br />I think what is 'hidden' in your blog is that Employee.NewEmployee <i>could</i> perform data access. In this instance I am guessing it does not. But if you have to hit the database to create a new object, that's where you have to mock out the data access.<br /><br />I really don't want to go to the trouble of complicating the architecture with interfaces, DTOs and multiple data access layers, it's just not worth the extra complexity in our environment. But I do want to deliver a good answer for our guys to use in all instances.<br /><br />Is it only/mostly validation and authorisation rules that you ever test? Ironically, the thing that almost always fails for us after object changes is the data access - incorrectly named SP parameters or missing parameters! Er, hang on, isn't that the bit we are trying to avoid running ...!AndrewHnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-25166241709725489502010-09-23T01:25:49.938-07:002010-09-23T01:25:49.938-07:00Nice one!
one day MS will get helpful with their e...Nice one!<br />one day MS will get helpful with their errors!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-82673317830936301322010-08-10T09:19:59.589-07:002010-08-10T09:19:59.589-07:00Thank you!Thank you!Anonymoushttps://www.blogger.com/profile/12369177908110621050noreply@blogger.comtag:blogger.com,1999:blog-2724692278714295115.post-49273978349003751082010-06-08T12:44:20.819-07:002010-06-08T12:44:20.819-07:00Thanks.Thanks.Anonymousnoreply@blogger.com