public async Task IsInterimNotSet_Throws() { SetupFacilityCollection(null); SetNotificationStatus(NotificationStatus.InAssessment); SetPaymentComplete(true); await Assert.ThrowsAsync <InvalidOperationException>(() => completeNotification.Complete(notificationId, new DateTime(2016, 1, 15))); }
public async Task <bool> HandleAsync(SetNotificationCompleteDate message) { await completeNotification.Complete(message.NotificationId, message.NotificationCompleteDate); await context.SaveChangesAsync(); return(true); }