public void Set_AssignesToSession() { // Arrange var player = new PlayerDto("", Guid.Empty); // Act _target.Set(player); // Assert _session.Received().Store(PlayerSession.SessionKey, player); }
public void Get_UserExists_ReturnsUser() { // Arrange var player = new PlayerDto("", Guid.Empty); _session.Get(PlayerSession.SessionKey).ReturnsForAnyArgs(player); // Act var result = _target.Get(); // Assert Assert.AreEqual(player, result); }
public void Set(PlayerDto player) { _session.Store(SessionKey, player); }