public void UserLogin_ReturnOKResult() { RegistrationController controller = new RegistrationController(_userBusiness, configuration); UserLogin details = new UserLogin() { Email = "*****@*****.**", Password = "******", UserType = "Owner" }; // Act var okResult = registrationController.Login(details); // Assert Assert.IsType <OkObjectResult>(okResult); }