public async Task FailingLoginCallShouldReturnNullForWrongPassword() { var sut = new LegacyWcfClient(); var player = await sut.LoginUserAsync(PlayerServiceTests.TestUserName, "wrongpassword"); Assert.IsNull(player); }
public async Task LoginCallShouldReturnUserForValidCreds() { var sut = new LegacyWcfClient(); var player = await sut.LoginUserAsync(PlayerServiceTests.TestUserName, PlayerServiceTests.TestUserPassword); Assert.IsNotNull(player); Assert.AreEqual(PlayerServiceTests.TestUserName, player?.Name); Assert.AreNotEqual(PlayerServiceTests.TestUserPassword, player?.Password); Assert.AreEqual(PlayerServiceTests.TestUserPassword, player?.Password?.Decrypt(33)); }