[U2] Mocking UniSession in .NET

2012-08-13 Thread Ravindranath Wickramanayake
Hi Does anybody know how to mock UniSession via .NET? or is there a interface for UniSession like IUniSession so it could be easily mockable? Your Help is very much appreciated Thanks Ravi ___ U2-Users mailing list

Re: [U2] Mocking UniSession in .NET

2012-08-13 Thread Tony Gravagno
From: Ravindranath Does anybody know how to mock UniSession via .NET? or is there a interface for UniSession like IUniSession so it could be easily mockable? If you don't get an answer here that you can use, look into JustMock from Telerik. I haven't used it against UniSession yet (I

Re: [U2] Mocking UniSession in .NET

2012-08-13 Thread Brian Leach
would it be better to construct a higher level wrapper for your business functions and mock those? the UO libraries are quite low level: its a bit like mocking ado.net rather than your db calls. I expose all the business logic through server side subroutines, all using standardized calling

Re: [U2] Mocking UniSession in .NET

2012-08-13 Thread Ravindranath Wickramanayake
Thanks for the reply. I am trying to do higher level wrappers to hide those UniObject stuff but the problem is in order to to get UniDynArray it has to have UniSession. UniObjects allow me to send UniDynArray to subroutine. Would you happen to have a sample code where you do something like that.

Re: [U2] Mocking UniSession in .NET

2012-08-13 Thread Tony Gravagno
Brian Leach would it be better to construct a higher level wrapper for your business functions and mock those? the UO libraries are quite low level: its a bit like mocking ado.net rather than your db calls. From: Ravindranath Thanks for the reply. I am trying to do higher level wrappers to

[U2] Fwd: Re: Mocking UniSession in .NET

2012-08-13 Thread Bill Haskett
G-Man: Despite the latest craze around unit testing and the entire industry that it's spawned, I still find applications I use to be as crappy as they've always been, so I'm not as enamored with unit tests or mocking as many others. ...maybe even more so! :-) You'd think developers these

Re: [U2] Fwd: Re: Mocking UniSession in .NET

2012-08-13 Thread Wjhonson
Well consider the situation where the programmer doesn't actually have their own instance of UniObjects at all, and is only trying to test some external unit. -Original Message- From: Bill Haskett wphask...@advantos.net To: U2 Mail List U2-users@listserver.u2ug.org Sent: Mon, Aug

[U2] [OT] Opportunity for non-MV techie to learn MV in Atlanta, GA

2012-08-13 Thread BruceHolt
I am not the one with the details but can put you in touch with the one who does. I can say that no MV experience is required. The database is UniVerse with OHM software. The company will train. Good beginning salary for interested candidate. We could certainly use new blood in our niche. --