import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';
import {TestcenterRouter} from './router/testcenter-router';
import { TestcenterContainer } from './container/testcenter/testcenter.container';
import { TestcenterSearchComponent } from './presenter/search/testcenter-search/testcenter-search.component';
import { TestcenterListComponent } from './presenter/list/testcenter-list/testcenter-list.component';
import { TestcenterDialogComponent } from './presenter/dialog/testcenter-dialog/testcenter-dialog.component';

const routes: Routes = [
    {
        path: '',
        component: TestcenterRouter,
        children: [
            {
                path: '',
                component: TestcenterContainer
            },
        ]
    }
];

@NgModule({
    declarations: [
        TestcenterRouter,
        TestcenterContainer,
        TestcenterSearchComponent,
        TestcenterListComponent,
        TestcenterDialogComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class TestcenterModule { }
