public void TriggerType_ReturnsConstructuredTriggerType()
        {
            var entityType = typeof(string);
            var subject    = new AfterCommitTriggerDescriptor(entityType);

            Assert.Equal(typeof(IAfterCommitTrigger <string>), subject.TriggerType);
        }
        public async Task Execute_ForwardsCall()
        {
            var entityType  = typeof(string);
            var triggerStub = new TriggerStub <string>();
            var subject     = new AfterCommitTriggerDescriptor(entityType);

            await subject.Invoke(triggerStub, new TriggerContextStub <string>(), null, default);

            Assert.Single(triggerStub.AfterCommitInvocations);
        }