The OnionArchitecture.as(..) method (and transitively because(..)) didn't pass the optionalLayers property along when creating a new OnionArchitecture(..) on return. Thus, once a test called as(..) or because(..) on the rule text optionalLayers would be reset to false.
The
OnionArchitecture.as(..)
method (and transitivelybecause(..)
) didn't pass theoptionalLayers
property along when creating anew OnionArchitecture(..)
on return. Thus, once a test calledas(..)
orbecause(..)
on the rule textoptionalLayers
would be reset tofalse
.Resolves: #1185