Example #1
0
        public void RegistrationApprovalUsername()
        {
            var msg = new RegistrationApprovalMessage { Username = "******", Approved = true };

            msg = msg.AssertLengthMatches();
            Assert.AreEqual ("blargle", msg.Username);
            Assert.AreEqual (true, msg.Approved);
            Assert.AreEqual (0, msg.UserId);
        }
Example #2
0
        public void RegistrationApprovalUserId()
        {
            var msg = new RegistrationApprovalMessage { UserId = 2, Approved = true };

            msg = msg.AssertLengthMatches();
            Assert.AreEqual (2, msg.UserId);
            Assert.AreEqual (true, msg.Approved);
            Assert.AreEqual (null, msg.Username);
        }