I need to implement my own Profile properties and was going to inherit from System.Web.Profile.ProfileBase to achieve this.
What I don’t understand is how to best unit test this Profile class in isolation without hitting the database.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I came across this situation today and found your question while trying to find an answer.
What I have ended up doing is wrapping up all calls to ProfileBase in a wrapper class, and mocking out the wrapper class using this
pattern
which talks specifically about Rhino Mocks
Not sure this will help you as it was a few months ago now since you asked the question.