Ejemplo n.º 1
0
        public async Task RecoveryPreconsent_DisposalOperation_RedirectsToOperationCodes()
        {
            A.CallTo(() => mediator.SendAsync(A <GetIsPreconsentedRecoveryFacility> .That.Matches(p => p.NotificationId == notificationId)))
            .Returns(new PreconsentedFacilityData
            {
                NotificationId = notificationId,
                IsPreconsentedRecoveryFacility = false,
                NotificationType = NotificationType.Disposal
            });

            var result = await facilityController.RecoveryPreconsent(notificationId) as RedirectToRouteResult;

            RouteAssert.RoutesTo(result.RouteValues, "OperationCodes", "WasteOperations");
        }