public void User_Authentication_BadRequestObjectResult() { var controller = new PaymentController(_userService.Object, _cardService.Object, _transactService.Object, _logger.Object); var user = new User() { Email = "*****@*****.**", Password = "******" }; var data = controller.Authenticate(user); Assert.IsType <BadRequestObjectResult>(data); }