When I run the given, expected events through the aggregate, it works great but I want to extract from the Aggregate the internal properties, the summed up values.
The events apply logic to these and I wanted to verify that the values are calculated properly after the events have been applied?
MyAggregate …
private int demand;
private int locked;
private int supply;
Test …
FixtureConfiguration fixture = new AggregateTestFixture(MyAggregate.class);
fixture
.given()
.when(command)
.expectReturnValue(null)
.expectEvents(events));
//TODO: How to check the value of demand, locked, supply properties
}
Thanks,