Esempio n. 1
0
        public void CallingHasEndorsementReturnsTrueWhenTheUserHasTheEndorsementByReference()
        {
            // Arrange
            var endorsement = new EndorsementBuilder().Build();
            var user        = new UserBulider().AddEndorsement(endorsement).Build();

            // Assert
            Assert.IsTrue(user.HasEndorsement(endorsement));
        }
Esempio n. 2
0
        public void CallingHasEndorsementReturnsFalseWhenTheUserDoesNotHaveTheEndorsement()
        {
            // Arrange
            var endorsement = new EndorsementBuilder().Build();
            var user        = new UserBulider().Build();

            // Assert
            Assert.IsFalse(user.HasEndorsement(endorsement));
        }