public void DataOwnerIsNotSet_ShouldNotValidate()
        {
            var validator        = new UpdateProjectValidator();
            var validationResult = validator.Validate(new UpdateProject
            {
                Name = "name"
            });

            Assert.Contains(validationResult.Errors, e => e.ErrorMessage.Equals("Data owner id is mandatory"));
        }
        public void NameIsNotValid_ShouldNotValidate(string name)
        {
            var validator        = new UpdateProjectValidator();
            var validationResult = validator.Validate(new UpdateProject
            {
                Name = name
            });

            Assert.Contains(validationResult.Errors, e => e.ErrorMessage.Equals("Name is mandatory"));
        }
        public void SurveillanceContextIsEmpty_ShouldNotValidate()
        {
            var validator        = new UpdateProjectValidator();
            var validationResult = validator.Validate(new UpdateProject
            {
                Name              = "name",
                DataOwnerId       = Guid.NewGuid(),
                NationalSocietyId = Guid.NewGuid(),
            });

            Assert.Contains(validationResult.Errors, e => e.ErrorMessage.Equals("Surveillance context is mandatory"));
        }
        public void UpdateProject_ShouldValidate()
        {
            var validator        = new UpdateProjectValidator();
            var validationResult = validator.Validate(new UpdateProject
            {
                Name                = "name",
                DataOwnerId         = Guid.NewGuid(),
                NationalSocietyId   = Guid.NewGuid(),
                SurveillanceContext = ProjectSurveillanceContext.AggregateReports
            });

            Assert.False(validationResult.Errors.Any());
        }