public void Should_be_possible_to_apply_NotEqualsOperation_on_key_entity_of_regkeyeffectiverights_object() { var sourceObject = (regkeyeffectiverights53_object)ProbeHelper.GetDefinitionObjectTypeByID("definitionsSimple", "810"); List <List <String> > fakeKeys = new List <List <String> >(); fakeKeys.Add(new List <String>(new string[] { @"SOFTWARE\Modulo\NG", @"SOFTWARE\Modulo\RiskManager", @"SOFTWARE\Modulo\RMNG", @"SOFTWARE\Modulo\RiskManagerNG" })); RegKeyEffectiveRightsOperationEvaluator operationEvaluator = this.CreateMockedOperationEvaluator(fakeKeys, new List <List <String> >()); var operationResult = operationEvaluator.ProcessOperationForKeyEntity(sourceObject, null); this.DoBasicAsserts(operationResult, 3); this.AssertOperationResult(operationResult, new string[] { fakeKeys[0][0], fakeKeys[0][2], fakeKeys[0][3] }); }
public void Should_be_possible_to_apply_PatternMatchOperation_on_trustee_sid_entity() { var sourceObject = (regkeyeffectiverights53_object)ProbeHelper.GetDefinitionObjectTypeByID("definitionsSimple", "800"); List <List <String> > fakeSIDs = new List <List <String> >(); fakeSIDs.Add(new List <String>(new string[] { @"S-1-5-1000", @"S-1-5-100-500", "", "S-1-5-18", "S-1-5-20" })); RegKeyEffectiveRightsOperationEvaluator operationEvaluator = this.CreateMockedOperationEvaluator(new List <List <String> >(), fakeSIDs); var operationResult = operationEvaluator.ProcessOperationForTrusteeSidEntity(sourceObject, null); this.DoBasicAsserts(operationResult, 2); this.AssertOperationResult(operationResult, new string[] { "S-1-5-1000", "S-1-5-100-500" }); }