public void AfterUpdatingStatusToCalled() { var controller = new JobController(); var context = new Mock <ControllerContext>(); var request = new Mock <RequestDelegate>(); controller.ControllerContext = context.Object; var result = controller.CallCustomer("213321132"); var redirectResult = result.Should().BeOfType <SeeOtherActionResult>().Subject; }