Re: [U2] Mocking UniSession in .NET

2012-08-15 Thread Ravindranath Wickramanayake
Thanks Brian I will try that out. -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach Sent: Tuesday, August 14, 2012 3:32 PM To: U2 Users List Subject: Re: [U2] Mocking UniSession in .NET ... in fact

Re: [U2] Mocking UniSession in .NET

2012-08-14 Thread Brian Leach
- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Tony Gravagno Sent: 14 August 2012 01:29 To: u2-users@listserver.u2ug.org Subject: Re: [U2] Mocking UniSession in .NET Brian Leach would it be better to construct a higher level wrapper for your

Re: [U2] Mocking UniSession in .NET

2012-08-14 Thread Ravindranath Wickramanayake
for unit testing purposes? -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach Sent: Tuesday, August 14, 2012 4:56 AM To: 'U2 Users List' Subject: Re: [U2] Mocking UniSession in .NET T I think we're actually

Re: [U2] Mocking UniSession in .NET

2012-08-14 Thread Brian Leach
fake UniSession for unit testing purposes? -Original Message- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach Sent: Tuesday, August 14, 2012 4:56 AM To: 'U2 Users List' Subject: Re: [U2] Mocking UniSession in .NET

Re: [U2] Mocking UniSession in .NET

2012-08-14 Thread Brian Leach
...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian Leach Sent: Tuesday, August 14, 2012 4:56 AM To: 'U2 Users List' Subject: Re: [U2] Mocking UniSession in .NET T I think we're actually talking the same thing: a separation between the business logic and the client

[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
Of Brian Leach Sent: Monday, August 13, 2012 3:50 PM To: U2 Users List Subject: Re: [U2] Mocking UniSession in .NET 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

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