Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Failing SimpleMembership tests when third party membership providers are installed [733]

$
0
0
When non-default membership providers are installed (e.g. mysql.web.security.mysqlmembershipprovider), the following tests incorrectly fail:

1. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartInitializesSimpleMembershipByDefault()
2. WebMatrix.WebData.Test.PreApplicationStartCodeTest.StartDoesNotInitializeSimpleMembershipWhenDisabled()

I believe the tests incorrectly rely on the default configuration, which is to have only the SqlMembershipProvider installed.

Rewriting them similar to this fixes the issue:

// Verify simple membership
var simpleMembershipProviders = Membership.Providers.OfType<SimpleMembershipProvider>();
Assert.Equal(1, simpleMembershipProviders.Count());


Comments: fixed not too long ago (see https://aspnetwebstack.codeplex.com/workitem/867)

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>