public void ConfirmPickup_Success() { var contextMock = new Mock <IDbContext>(); var hostingEnv = new Mock <IHostingEnvironment>(); var controller = new RequestController(contextMock.Object); var response = controller.ConfirmPickup(); var result = response as ViewResult; Assert.IsType <ViewResult>(response); }