CIHDigitalConfigurator / CIH_Toolkit

CIH_Toolkit
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Apply multiple specifications to the same set of Objects #13

Closed alelom closed 3 years ago

alelom commented 3 years ago

Currently, we have two methods to apply input Specifications to a List of objects:

  1. ApplySpecification(List<IBHoMObject> objects, Specification specification)
  2. ApplySpecifications(List<IBHoMObject> objects, List<Specification> specifications)

Method 2 is currently unreliable and needs work. We need to fix it, so multiple application of different specification work consistently. It can be complex, because aggregating FilterConditions results and CheckConditions results and then exposing the overall result in a single SpecificationResult is not entirely trivial.

Once it is fixed and tested thoroughly, we should remove method 1 and only expose method 2.