public async void GetProjectDataModelPropertyById_ReturnNull() { var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object); var property = await projectDataModelService.GetProjectDataModelPropertyById(2); Assert.Null(property); }
public async void GetProjectDataModelPropertyById_ReturnItem() { var projectDataModelService = new ProjectDataModelService(_dataModelRepository.Object, _propertyRepository.Object, _projectRepository.Object); var property = await projectDataModelService.GetProjectDataModelPropertyById(1); Assert.NotNull(property); Assert.Equal(1, property.Id); }