Beispiel #1
0
        public void BEmailWithInvalidMembers_WhenCreateValidated_ReturnsFalse()
        {
            //Arrange: An email with all invalid members is created.
            BEmail email = new BEmail{
                Title = "1234567890123456789012345678901234567890",
                Body = null,
                Recipient = null,
                Sender = null
            };

            //Act: the blocked user is checked if it is create valid.
            bool valid = email.CreateValid();

            //Assert: the blocked user is not valid for creation.
            Assert.AreEqual(false, valid);
        }
Beispiel #2
0
        public void BEmailWithValidMembers_WhenCreateValidated_ReturnsTrue()
        {
            //Arrange: An email with all valid members is created.
            BEmail email = new BEmail{
                Title = "Title",
                Body = "Body",
                Recipient = "Recipient",
                Sender = "Sender"
            };

            //Act: the blocked user is checked if it is create valid.
            bool valid = email.CreateValid();

            //Assert: the blocked user is valid for creation.
            Assert.AreEqual(true, valid);
        }