protected GroupDto GetGroupDto()
 {
     return(new GroupDto()
     {
         Name = RandomFactory.GetCompanyName(),
         IsActive = RandomFactory.GetBoolean()
     });
 }
 private GroupDto SetupGroupDto()
 {
     return(new GroupDto()
     {
         Name = RandomFactory.GetCompanyName(),
         IsActive = RandomFactory.GetBoolean()
     });
 }
        public void GroupDtoValidation_Valid_NoErrors()
        {
            var dto = new GroupDto
            {
                Name = RandomFactory.GetCompanyName(),
            };

            var validationContext = new ValidationContext(dto);

            var validationResults = dto.Validate(validationContext);

            validationResults.Should().HaveCount(0);
        }