public void AreValidUserCredentialsReturnTrueWithCorrectData() { _userServiceMock.Setup(x => x.GetUserWithUsername(It.IsAny <string>())).Returns(new User() { Password = "******" }); _hashServiceMock.Setup(x => x.Hash(It.IsAny <string>())).Returns("hashed"); var result = _cut.AreValidUserCredentials("username", "password"); Assert.IsTrue(result); }