public void Should_indicate_that_auth_is_a_reserved_physical_schema_name()
            {
                Assert.That(ActualException, Is.Not.Null);

                ActualException.MessageShouldContain(
                    $"Schema '{SystemConventions.AuthSchema}' is reserved for system use.");
            }
Exemple #2
0
 public void Should_throw_a_MissingMember_exception_with_missing_members_and_associated_types_listed_in_the_message()
 {
     ActualException.ShouldBeExceptionType <MissingMemberException>();
     ActualException.MessageShouldContain("NonExistingSourcePropertyName");
     ActualException.MessageShouldContain("NonExistingTargetPropertyName");
     ActualException.MessageShouldContain(typeof(EntityWithRoleNamedProperties).FullName);
     ActualException.MessageShouldContain(typeof(RelationshipsAuthorizationContextData).FullName);
 }
            public void Should_throw_exception()
            {
                Assert.That(ActualException, Is.Not.Null);

                ActualException.MessageShouldContain(
                    The <Assembly>()
                    .FullName);

                ActualException.MessageShouldContain("did not contain the expected embedded resource");
            }
 public void Should_indicate_that_the_entity_has_already_been_added()
 {
     ActualException.MessageShouldContain("key has already been added");
 }
 public void Should_throw_an_exception_with_a_message_identifying_the_missing_entity()
 {
     ActualException.MessageShouldContain("could not be found");
     ActualException.MessageShouldContain("schema.Entity2");
 }
 public void Should_indicate_that_the_reserved_auth_schema_was_used_by_the_entity()
 {
     ActualException.MessageShouldContain(
         $"Entity 'auth.Entity1' uses the reserved schema '{SystemConventions.AuthSchema}'.");
 }
 public void Should_indicate_that_the_primary_entity_of_the_association_does_not_exist()
 {
     ActualException.MessageShouldContain("primary");
     ActualException.MessageShouldContain("schema.SourceEntity");
     ActualException.MessageShouldContain("could not be found");
 }
            public void Should_throw_an_exception_indicating_the_underlying_extension_object_could_not_be_unwrapped()
            {
                Assert.That(ActualException, Is.Not.Null);

                ActualException.MessageShouldContain("Unable to unwrap the extension object.");
            }
Exemple #9
0
 public void Should_throw_an_exception_indicating_the_bag_name_format_is_invalid()
 {
     Assert.That(ActualException, Is.Not.Null);
     ActualException.MessageShouldContain("Supplied extension bag name 'Too_Many_Underscores' did not match the expected format.");
 }
Exemple #10
0
 public void Should_throw_an_InvalidOperationException()
 {
     ActualException.ShouldBeOfType <InvalidOperationException>();
     ActualException.MessageShouldContain("no available education organizations");
 }
 public void Should_indicate_that_the_entity_uses_an_undefined_schema()
 {
     Assert.That(ActualException, Is.Not.Null);
     ActualException.MessageShouldContain("Entity 'UndefinedSchema.ChildEntity' uses an undefined schema.");
 }
 public void Should_throw_an_EdFiSecurityException_indicating_the_claims_did_not_provide_authorization_for_the_request()
 {
     ActualException.ShouldBeExceptionType <EdFiSecurityException>();
     ActualException.MessageShouldContain("Access to the requested");
 }
Exemple #13
0
 public void Should_indicate_that_the_aggregate_uses_an_undefined_schema()
 {
     Assert.That(ActualException, Is.Not.Null);
     ActualException.MessageShouldContain("Aggregate 'UndefinedSchema.Entity1' uses an undefined schema.");
 }
 public virtual void Should_throw_argument_exception_when_RegisterAggregateExtensionEntity_is_called()
 {
     AssertHelper.All(
         () => ActualException.ShouldBeExceptionType <ArgumentException>(),
         () => ActualException.MessageShouldContain("edFiStandardEntityType is not an entity Type."));
 }
 public virtual void ArgumentException_should_be_thrown_when_Register_Extension_Type_Is_Called()
 {
     AssertHelper.All(
         () => ActualException.ShouldBeExceptionType <ArgumentException>(),
         () => ActualException.MessageShouldContain("is not an entity Type"));
 }
 public void Should_throw_an_exception_that_the_extension_entry_is_already_registered()
 {
     ActualException.MessageShouldContain("already registered");
 }
 public void Should_indicate_that_the_entity_has_not_been_assigned_to_any_aggregate()
 {
     ActualException.MessageShouldContain("schema.Entity2");
     ActualException.MessageShouldContain("not assigned to any aggregate");
 }
 public void Should_indicate_that_the_secondary_entity_of_the_association_does_not_exist()
 {
     ActualException.MessageShouldContain("schema.TargetEntity");
     ActualException.MessageShouldContain("not found");
 }
Exemple #19
0
 public void Should_throw_an_EdFiSecurityException_related_to_the_missing_API_key_context()
 {
     ActualException.ShouldBeExceptionType <EdFiSecurityException>();
     ActualException.MessageShouldContain("API key");
 }
 public void Should_throw_an_exception_indicating_that_an_entity_extension_that_was_supported_by_the_source_was_not_present()
 {
     ActualException.MessageShouldContain("the extension was not provided");
 }