protected override void Arrange() { var contextStorage = new HashtableContextStorage(); contextStorage.SetValue(AuthorizationContextKeys.Resource, new[] { "Some Resource" }); contextStorage.SetValue(AuthorizationContextKeys.Action, "Some Action"); Given <IContextStorage>(contextStorage); }
protected override void Arrange() { // Set the "action" context only var contextStorage = new HashtableContextStorage(); contextStorage.SetValue(AuthorizationContextKeys.Action, "Some Action"); Given <IContextStorage>(contextStorage); }