danielkorzekwa/betting-exchange — Issue #2: Refactor Betex tests to use case Bet class for assertions
Author: danielkorzekwa
Created: 2012-02-07 08:11:23+00:00
State: open

Instead of:
assertEquals(10,matchResult(0).betId)
assertEquals(122,matchResult(0).userId)
assertEquals(10,matchResult(0).betSize,0)
assertEquals(2,matchResult(0).betPrice,0)
assertEquals(BACK,matchResult(0).betType)
assertEquals(M,matchResult(0).betStatus)
assertEquals(1,matchResult(0).marketId)
assertEquals(11,matchResult(0).runnerId)

use:
assertEquals(Bet(....), currentBet)