public void AddDataModelProperty_DuplicateItem()
        {
            var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object);
            var exception = Record.ExceptionAsync(() => projectDataModelService.AddDataModelProperty(1, "Name", "Name", "string", "input-text", true, null, null, null));

            Assert.IsType <DuplicateProjectDataModelPropertyException>(exception?.Result);
        }
        public void AddDataModelProperty_InvalidDataModel()
        {
            var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object);
            var exception = Record.ExceptionAsync(() => projectDataModelService.AddDataModelProperty(2, "Price", "Price", "int", "input-text", false, null, null, null));

            Assert.IsType <ProjectDataModelNotFoundException>(exception?.Result);
        }
        public async void AddDataModelProperty_ValidItem()
        {
            var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object);
            int newId = await projectDataModelService.AddDataModelProperty(1, "Price", "Price", "int", "input-text", false, null, null, null);

            Assert.True(newId > 1);
            Assert.True(_dataProperty.Count > 1);
        }