CSLA 7.0.3 ApplicationContext.Principal [ClassInitialize] vs [TestInitialize] #4122
Unanswered
michaelcsikos
asked this question in
Questions
Replies: 1 comment
-
In the CSLA unit tests we tend to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Previously, I was setting
ApplicationContext.Principal
for our tests in[ClassInitialize]
and this worked fine. At some point, all of the tests stopped working as thePrincipal
had disappeared by the time a test method started resulting in theIsInRole
auth failing. I've switched to setting up with[TestInitialize]
which has resolved the issue, but I'm just wondering what changed?Beta Was this translation helpful? Give feedback.
All reactions