import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { TestingVdosRouter } from './router/testing-vdos-router';
import {RouterModule, Routes} from '@angular/router';
import {SharedModule} from '../../../shared/shared.module';
import { TestingVdosContainer } from './container/testing-vdos/testing-vdos.container';
import { TestingVdosListComponent } from './presenter/list/testing-vdos-list/testing-vdos-list.component';
import { TestingVdosSearchComponent } from './presenter/search/testing-vdos-search/testing-vdos-search.component';
import { TestingVdosFormComponent } from './presenter/form/testing-vdos-form/testing-vdos-form.component';

const routes: Routes = [
    {
        path: '',
        component: TestingVdosRouter,
        children: [
            {
                path: '',
                component: TestingVdosContainer
            },
            {
                path: 'add',
                component: TestingVdosFormComponent
            },
            {
                path: 'edit/:id',
                component: TestingVdosFormComponent
            },
        ]
    }
];

@NgModule({
    declarations: [
        TestingVdosRouter,
        TestingVdosContainer,
        TestingVdosListComponent,
        TestingVdosSearchComponent,
        TestingVdosFormComponent
    ],
    imports: [
        CommonModule,
        SharedModule,
        RouterModule.forChild(routes)
    ]
})
export class TestingVdosModule { }
