c# - How to mock or stub a .netTiers generated DataRepository object -
I am using rhino mock for mapping unit testing of objects. Our DAL coder uses the generating code from the Annetteyas templates, which creates these data archipelay sections which have datasets in all modes for CRUD type transaction. In Unit Testing, I am trying to joke up this data repository object which has no interface class to use as a stub.
In short, no one has successfully created a duplicate datarepo for any .nettiers to use Rhino, to avoid the need of a test database and to eliminate real transactions against datasets. is required?
I am considering this for a while because no one can step up Is not picking up and so far the fake data archipotentiary implementation (for my information) is written for NATTIARS.
TypeMock and RhinoMocks do not care too much for the record-replication steps, I have opted for the new Moq, which will strengthen the data ratio class or service layer i.e. with the least difficulty itself Makes a call.
Let's say you are on Net 3.5, I recommend it.
Comments
Post a Comment