public async void UpdateDataModelProperty_ValidItem()
        {
            var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object);
            await projectDataModelService.UpdateDataModelProperty(new ProjectDataModelProperty
            {
                Id = 1,
                ProjectDataModelId = 1,
                Name = "newName"
            });

            var dataModelProperty = _dataProperty.First(d => d.Id == 1);

            Assert.Equal("newName", dataModelProperty.Name);
        }
        public void UpdateDataModelProperty_DuplicateItem()
        {
            _dataProperty.Add(new ProjectDataModelProperty
            {
                Id = 2,
                ProjectDataModelId = 1,
                Name = "newName"
            });

            var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object);
            var exception = Record.ExceptionAsync(() => projectDataModelService.UpdateDataModelProperty(new ProjectDataModelProperty
            {
                Id = 1,
                ProjectDataModelId = 1,
                Name = "newName"
            }));

            Assert.IsType <DuplicateProjectDataModelPropertyException>(exception?.Result);
        }