private async Task SetAssessmentCommenced(DateInputViewModel model) { var setAssessmentCommenced = new SetCommencedDate(model.NotificationId, model.NewDate.AsDateTime().GetValueOrDefault(), model.NameOfOfficer); await mediator.SendAsync(setAssessmentCommenced); }
public SetCommencedDateHandlerTests() { context = new TestIwsContext(); var assessment = new NotificationAssessment(notificationId); ObjectInstantiator<NotificationAssessment>.SetProperty(x => x.Status, NotificationStatus.NotificationReceived, assessment); ObjectInstantiator<NotificationDates>.SetProperty(x => x.PaymentReceivedDate, receivedDate, assessment.Dates); context.NotificationAssessments.Add(assessment); message = new SetCommencedDate(notificationId, commencementDate, "Officer"); handler = new SetCommencedDateHandler(context); }
public SetCommencedDateHandlerTests() { context = new TestIwsContext(); var assessment = new NotificationAssessment(notificationId); ObjectInstantiator <NotificationAssessment> .SetProperty(x => x.Status, NotificationStatus.NotificationReceived, assessment); ObjectInstantiator <NotificationDates> .SetProperty(x => x.PaymentReceivedDate, receivedDate, assessment.Dates); context.NotificationAssessments.Add(assessment); message = new SetCommencedDate(notificationId, commencementDate, "Officer"); handler = new SetCommencedDateHandler(context); }
private async Task SetAssessmentCommenced(DateInputViewModel model) { var setAssessmentCommenced = new SetCommencedDate(model.NotificationId, model.NewDate.AsDateTime().GetValueOrDefault(), model.NameOfOfficer); await mediator.SendAsync(setAssessmentCommenced); }