public async Task IsInterimNotSet_Throws()
        {
            SetupFacilityCollection(null);
            SetNotificationStatus(NotificationStatus.InAssessment);
            SetPaymentComplete(true);

            await Assert.ThrowsAsync <InvalidOperationException>(() => completeNotification.Complete(notificationId, new DateTime(2016, 1, 15)));
        }
Beispiel #2
0
        public async Task <bool> HandleAsync(SetNotificationCompleteDate message)
        {
            await completeNotification.Complete(message.NotificationId, message.NotificationCompleteDate);

            await context.SaveChangesAsync();

            return(true);
        }