new-runtimepoc/Factory.cs

using System.Management.Automation;
 
 
namespace Pester {
    ///<summary>Creates various types to avoid using New-Object cmdlet</summary>
    ///
    public static class Factory {
        public static PSNoteProperty CreateNoteProperty(string name, object value) {
            return new PSNoteProperty(name, value);
        }
    }
}