public async Task Should_add_feature()
        {
            var dto = new FeatureDTO(name: "buttonIsBlue", isActive: false);

            var feature = await _featureDomainService.AddFeature(dto);

            using (new AssertionScope())
            {
                dto.ValidationResult.Errors.Should().BeEmpty();
                _featureRepository.Received(1).Add(feature);
            }
        }
        public async Task <FeatureModelResponse> Add(FeatureModel featureModel)
        {
            var newFeature = await _featureDomainService.AddFeature(new FeatureDTO(featureModel.Name, featureModel.IsActive));

            if (newFeature == null)
            {
                return(null);
            }
            await CommitAsync();

            return(new FeatureModelResponse(newFeature.Id, newFeature.Name, newFeature.IsActive));
        }