Skip to content

API reference / @node-ts/bus-test / TestRoundTripCommand

Class: TestRoundTripCommand ​

Defined in: bus-test/src/helpers/test-round-trip-command.ts:10

A command that uses every kind of field the serializer has to restore, used to check that messages survive a round trip through a transport

Extends ​

Constructors ​

Constructor ​

ts
new TestRoundTripCommand(): TestRoundTripCommand;

Returns ​

TestRoundTripCommand

Inherited from ​

Command.constructor

Properties ​

PropertyModifierTypeDefault valueDescriptionOverridesDefined in
$namepublicstringTestRoundTripCommand.NAME-Command.$namebus-test/src/helpers/test-round-trip-command.ts:12
$versionpublicnumber2-Command.$versionbus-test/src/helpers/test-round-trip-command.ts:13
billingAddress?publicTestAddressundefined--bus-test/src/helpers/test-round-trip-command.ts:35
cancelledAtpublicDate | nullundefined--bus-test/src/helpers/test-round-trip-command.ts:37
channelpublicstring'web'Has a default that only a constructor call applies-bus-test/src/helpers/test-round-trip-command.ts:44
customerpublicTestCustomerundefined--bus-test/src/helpers/test-round-trip-command.ts:19
deliveredAt?publicDateundefined--bus-test/src/helpers/test-round-trip-command.ts:33
idpublicstringundefined--bus-test/src/helpers/test-round-trip-command.ts:15
linespublicTestOrderLine[]undefined--bus-test/src/helpers/test-round-trip-command.ts:21
linesBySkupublicMap<string, TestOrderLine>undefined--bus-test/src/helpers/test-round-trip-command.ts:25
note?publicstringundefined--bus-test/src/helpers/test-round-trip-command.ts:29
placedAtpublicDateundefined--bus-test/src/helpers/test-round-trip-command.ts:17
referrerpublicTestCustomer | nullundefined--bus-test/src/helpers/test-round-trip-command.ts:39
reminderspublicDate[]undefined--bus-test/src/helpers/test-round-trip-command.ts:23
shippedAt?publicDateundefined--bus-test/src/helpers/test-round-trip-command.ts:31
tagspublicSet<string>undefined--bus-test/src/helpers/test-round-trip-command.ts:27
untypedDatepublicDateundefinedThe only Date that had no @Type decorator under class-transformer-bus-test/src/helpers/test-round-trip-command.ts:49
NAMEstaticstring'@node-ts/bus-test/test-round-trip-command'--bus-test/src/helpers/test-round-trip-command.ts:11

Accessors ​

lineCount ​

Get Signature ​

ts
get lineCount(): number;

Defined in: bus-test/src/helpers/test-round-trip-command.ts:51

Returns ​

number

Methods ​

orderTotal() ​

ts
orderTotal(): number;

Defined in: bus-test/src/helpers/test-round-trip-command.ts:55

Returns ​

number

Released under the MIT License.