Пример #1
0
        private ClaimTransformLogic ClaimTransformLogicInstance()
        {
            var routeBinding            = new RouteBinding();
            var mockHttpContextAccessor = HttpContextAccessorHelper.MockObject(routeBinding);

            var telemetryScopedLogger = TelemetryLoggerHelper.ScopedLoggerObject(mockHttpContextAccessor);

            var claimTransformValidationLogic = new ClaimTransformValidationLogic(mockHttpContextAccessor);

            return(new ClaimTransformLogic(telemetryScopedLogger, claimTransformValidationLogic, mockHttpContextAccessor));
        }
Пример #2
0
 private static ClaimTransformActions MapAction(ClaimTransform ct)
 {
     ClaimTransformValidationLogic.HandleObsoleteActions(ct);
     return(ct.Action);
 }