aldrichtr / infraspective

Infrastructure testing using pester
MIT License
18 stars 0 forks source link

Abstract Elements and generic functions #107

Open aldrichtr opened 1 year ago

aldrichtr commented 1 year ago

Abstract Elements

The infraspective elements (Directories, Files, Checklists, Groupings, and Controls) are really Containers. Each one just collects and tallies the "sub-element's" Results to use as their Results. There is a lot of duplicate code in each of the Invoke* functions, and the best way to reduce that is to "pull it up" into an InfraspectiveContainer. The "atomic" element is a Test, which is the part that get's executed, which is an InfraspectiveBlock