ProfileBase Unit Testing in ASP.Net

I need to implement my own profile properties and am going to inherit from System.Web.Profile.ProfileBase to achieve this.

What I don't understand is, as the best unit test, this profile class is isolated in isolation without getting into the database.

+4
source share
1 answer

Today I came across this situation and found your question, trying to find the answer.

What I ended up doing was ending all the calls to ProfileBase in the wrapper class and mocking the wrapper class using this template that specifically talks about Rhino Mocks

Not sure if this will help you, as it was a few months ago since you asked the question.

+1
source

All Articles