import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {SharedModule} from '../../shared/shared.module';
import {RouterModule, Routes} from '@angular/router';
import { CandidatePaymentStatusRouter } from './router/router';
import { CandidatePaymentStatusContainer } from './container/candidate-payment-status/candidate-payment-status.container';
import { ListComponent } from './presenter/list/list.component';
import { SearchComponent } from './presenter/search/search.component';
import { TestingInfoListComponent } from './presenter/testing-info-list/testing-info-list.component';
import { TestingInfoSearchComponent } from './presenter/testing-info-search/testing-info-search.component';
import { TestingInfoContainer } from './container/testing-info/testing-info.container';


const routes: Routes = [
  {
    path: '',
    component: CandidatePaymentStatusRouter,
    children: [
      {
        path: '',
        component: TestingInfoContainer
      },
      {
        path: 'view/:id',
        component: CandidatePaymentStatusContainer
      },
    ]
  }
];

@NgModule({
  declarations: [
    CandidatePaymentStatusContainer,
    CandidatePaymentStatusRouter,
    ListComponent,
    SearchComponent,
    TestingInfoListComponent,
    TestingInfoSearchComponent,
    TestingInfoContainer
],
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild(routes),
  ]
})
export class CandidatePaymentStatusModule {}
