Ejemplo n.º 1
0
        public void Participation_NewParticipation_ShouldBeInvalid()
        {
            // Arrange
            var participation = new Participation(Guid.NewGuid(), "L", "P", 0);

            // Act
            var result = participation.IsValid();

            // Assert
            Assert.False(result);
            Assert.NotEqual(0, participation.ValidationResult.Errors.Count);
        }
Ejemplo n.º 2
0
        public void Participation_NewParticipation_ShoulBeValid()
        {
            // Arrange
            var participation = new Participation(Guid.NewGuid(), "Leonardo", "Costa", 50);

            // Act
            var result = participation.IsValid();

            // Assert
            Assert.True(result);
            Assert.Equal(0, participation.ValidationResult.Errors.Count);
        }