test/int/transport-eventbus/model/test.model.ts   A
last analyzed

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 12
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 8
dl 0
loc 12
rs 10
c 0
b 0
f 0
mnd 0
bc 0
fnc 1
bpm 0
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A TestModel.applyEvent 0 2 1
1
import { AggregateRoot } from '@nestjs/cqrs';
2
import { TryAggregateRootEvent } from '../events/test.events';
3
4
export class TestModel extends AggregateRoot {
5
    constructor() {
6
        super();
7
    }
8
    applyEvent(message: string) {
9
        this.apply(new TryAggregateRootEvent(message));
10
    }
11
}
12