private async Task SetNotificationTransmitted(DateInputViewModel model) { var setNotificationTransmitted = new SetNotificationTransmittedDate(model.NotificationId, model.NewDate.AsDateTime().GetValueOrDefault()); await mediator.SendAsync(setNotificationTransmitted); }
public SetNotificationTransmittedDateHandlerTests() { context = new TestIwsContext(); assessment = new NotificationAssessment(notificationId); ObjectInstantiator<NotificationAssessment>.SetProperty(x => x.Status, NotificationStatus.ReadyToTransmit, assessment); context.NotificationAssessments.Add(assessment); handler = new SetNotificationTransmittedDateHandler(context); message = new SetNotificationTransmittedDate(notificationId, transmittedDate); }
private async Task SetNotificationTransmitted(DateInputViewModel model) { var setNotificationTransmitted = new SetNotificationTransmittedDate(model.NotificationId, model.NewDate.AsDateTime().GetValueOrDefault()); await mediator.SendAsync(setNotificationTransmitted); }