Split ConfigurationService to use SimulationService
Methods concerning engine make use of EngineService, those concerning grid and patterns make use of SimulationService.
This commit is contained in:
parent
6b4786fdd0
commit
7729da3a40
3 changed files with 26 additions and 15 deletions
|
|
@ -3,6 +3,7 @@ import 'dart:math';
|
|||
import 'package:mockito/mockito.dart';
|
||||
import 'package:rules_of_living/service/configuration_service.dart';
|
||||
import 'package:rules_of_living/service/engine_service.dart';
|
||||
import 'package:rules_of_living/service/simulation_service.dart';
|
||||
import 'package:rules_of_living/src/Engine.dart';
|
||||
@TestOn('browser')
|
||||
import 'package:test/test.dart';
|
||||
|
|
@ -12,12 +13,13 @@ class MockEngine extends Mock implements Engine {}
|
|||
void main() {
|
||||
ConfigurationService sut;
|
||||
EngineService engineService;
|
||||
SimulationService simService;
|
||||
MockEngine me;
|
||||
setUp(() {
|
||||
me = MockEngine();
|
||||
engineService = EngineService();
|
||||
engineService.engine = me;
|
||||
sut = ConfigurationService(engineService);
|
||||
sut = ConfigurationService(engineService, simService);
|
||||
});
|
||||
|
||||
group("simulation speed", () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue