コード例 #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);
 }