Messages Order

  • + 4 comments

    I recommend that you remove the static id field from Message and make it a non-static member of the MessageFactory. Then just add the current_id as argument of the Message constructor. This way, you avoid a global state and simplify unit testing.