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

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

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

            Assert.Single(triggerStub.BeforeRollbackInvocations);
        }