public void DisposalNotification_PreconsentedFacilityExistsIsNotNull_HasValidationError(bool input) { var preconsented = new Preconsented(importDisposalNotificationId) { AllFacilitiesPreconsented = input }; validator.ShouldHaveValidationErrorFor(x => x.AllFacilitiesPreconsented, preconsented); }
public async Task<ActionResult> Index(Guid id, PreconsentedViewModel model) { var preconsented = new Preconsented(id) { AllFacilitiesPreconsented = model.SelectedValue }; await mediator.SendAsync(new SetDraftData<Preconsented>(id, preconsented)); return RedirectToAction("Index", "Exporter"); }
public async Task <ActionResult> Index(Guid id, PreconsentedViewModel model) { var preconsented = new Preconsented(id) { AllFacilitiesPreconsented = model.SelectedValue }; await mediator.SendAsync(new SetDraftData <Preconsented>(id, preconsented)); return(RedirectToAction("Index", "Exporter")); }
public void RecoveryNotification_PreconsentedFacilityExistsIsNull_HasValidationError() { var preconsented = new Preconsented(importRecoveryNotificationId); validator.ShouldHaveValidationErrorFor(x => x.AllFacilitiesPreconsented, preconsented); }