event-local
Version:
Event client
22 lines • 751 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const TestCommand_1 = require("./TestCommand");
class TestService {
constructor(repository) {
this.repository = repository;
}
async createTest(testDetail) {
return await this.repository.save(new TestCommand_1.CreateTest(testDetail));
}
async renameTest(id, name) {
return await this.repository.update(new TestCommand_1.RenameTest(id, name));
}
async changeStatus(id, status) {
return await this.repository.update(new TestCommand_1.ChangeStatusTest(id, status));
}
async find(id) {
return await this.repository.find(id);
}
}
exports.default = TestService;
//# sourceMappingURL=TestService.js.map
;