Example #1
0
            public void ShouldSetEventDetailCodeProperly(MembershipEventCode eventCode)
            {
                MembershipEvent actual = new MembershipEvent(eventCode,new User());

                Assert.AreEqual((int) eventCode, actual.EventDetailCode);
                Assert.AreEqual(eventCode.GetDescription(),actual.Message);
            }
Example #2
0
 public MembershipEvent(MembershipEventCode code, User user)
     : base(code.GetDescription(), user, WebEventCodes.WebExtendedBase, (int)code)
 {
     _user = user;
     _culture = CultureInfo.CurrentCulture.Name;
 }