protected override void Arrange() { Given <context_data_provider>() .that_returns_property_names( Supplied( "propertyNames", new[] { "SchoolId", "StaffUSI" })); Given <context_data_provider_factory>() .that_always_returns(Given <context_data_provider>()); Supplied("LocalEducationAgencyId", 999); Supplied("SchoolId", 888); Supplied("entity", new object()); Supplied(Given_an_authorization_context_with_entity_data( ApiKeyContextHelper.GetApiKeyContextWithEdOrgIds( Supplied <int>("LocalEducationAgencyId"), Supplied <int>("SchoolId")), Supplied("entity"))); Supplied( Given_a_claim_for_an_arbitrary_resource_for_EducationOrganization_identifiers( Supplied <int>("LocalEducationAgencyId"), Supplied <int>("SchoolId"))); }
protected override void Arrange() { Supplied( "entity", new TestEntity( Supplied("LocalEducationAgencyId", 999), Supplied("StaffUSI", 123))); Supplied( new RelationshipsAuthorizationContextData { LocalEducationAgencyId = Supplied <int>("LocalEducationAgencyId"), StaffUSI = Supplied <int>("StaffUSI") }); Given <context_data_provider>() .that_returns_property_names( Supplied( "propertyNames", new[] { "LocalEducationAgencyId", "StaffUSI" })) .that_given_entity(Supplied("entity")) .Returns(Supplied <RelationshipsAuthorizationContextData>()); Supplied(Given_an_authorization_context_with_entity_data( ApiKeyContextHelper.GetApiKeyContextWithEdOrgIds( Supplied <int>("LocalEducationAgencyId")), Supplied("entity"))); Given <context_data_provider_factory>() .that_always_returns(Given <context_data_provider>()); Supplied( Given_a_claim_for_an_arbitrary_resource_for_EducationOrganization_identifiers( Supplied <int>("LocalEducationAgencyId"))); }