Ejemplo n.º 1
0
        public void DisposalNotification_PreconsentedFacilityExistsIsNotNull_HasValidationError(bool input)
        {
            var preconsented = new Preconsented(importDisposalNotificationId)
            {
                AllFacilitiesPreconsented = input
            };

            validator.ShouldHaveValidationErrorFor(x => x.AllFacilitiesPreconsented, preconsented);
        }
        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");
        }
Ejemplo n.º 4
0
        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"));
        }
Ejemplo n.º 5
0
        public void RecoveryNotification_PreconsentedFacilityExistsIsNull_HasValidationError()
        {
            var preconsented = new Preconsented(importRecoveryNotificationId);

            validator.ShouldHaveValidationErrorFor(x => x.AllFacilitiesPreconsented, preconsented);
        }
        public void RecoveryNotification_PreconsentedFacilityExistsIsNull_HasValidationError()
        {
            var preconsented = new Preconsented(importRecoveryNotificationId);

            validator.ShouldHaveValidationErrorFor(x => x.AllFacilitiesPreconsented, preconsented);
        }