platform/test/common.dart
2016-12-10 09:05:40 -05:00

23 lines
460 B
Dart

library angel_framework.test.common;
import 'package:angel_framework/angel_framework.dart';
class Todo extends MemoryModel {
String text;
String over;
Todo({String this.text, String this.over});
}
incrementTodoTimes(e) {
IncrementService.TIMES++;
}
@Hooks(before: const [incrementTodoTimes])
class IncrementService extends Service {
static int TIMES = 0;
@override
@Hooks(after: const [incrementTodoTimes])
index([params]) async => [];
}