public void PlayerShouldJoin() { var game = GameMocks.Joinable(); var processor = new JoinEventProcessor(game.Object, new MockLogger()); var joinedEvent = (PlayerJoinedEvent)processor.Process(new JoinEvent()); Assert.NotNull(joinedEvent.Player); }
public void PlayerCanJoinFaction() { var game = GameMocks.Joinable(); var processor = new JoinFactionEventProcessor(game.Object); var joinedEvent = (PlayerJoinedEvent)processor.Process(new JoinEvent()); Assert.NotNull(joinedEvent.Player); }