public void TriggerType_ReturnsConstructuredTriggerType()
        {
            var entityType = typeof(string);
            var exception  = new Exception();
            var subject    = new AfterSaveFailedTriggerDescriptor(entityType, exception);

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

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

            Assert.Single(triggerStub.AfterSaveFailedInvocations);
            Assert.Equal(exception, triggerStub.AfterSaveFailedInvocations.First().exception);
        }