Beispiel #1
0
        public async Task Should_throw_if_schema_not_found_in_check()
        {
            A.CallTo(() => appProvider.GetSchemaAsync(appId, "my-schema"))
            .Returns((ISchemaEntity)null);

            await Assert.ThrowsAsync <DomainObjectNotFoundException>(() => sut.ThrowIfSchemaNotExistsAsync(context.WithSchemaName("my-schema")));
        }
        public async Task Should_throw_404_if_schema_not_found_in_check()
        {
            SetupSchemaNotFound();

            var ctx = context;

            await Assert.ThrowsAsync <DomainObjectNotFoundException>(() => sut.ThrowIfSchemaNotExistsAsync(ctx, schemaId.Name));
        }