import { PerformanceReviewExternalReviewer } from '../../../../src/api/modules/performanceReviews/business/models/PerformanceReviewExternalReviewer';
import { PerformanceReviewExternalReviewerSC } from '../../../../src/api/modules/performanceReviews/presentation/serializationClasses/performanceReviewExternalReviewerSC';
import { checkPerformanceReviewExternalReviewerSerialized, generateRandomExternalReviewer } from '../common';

describe('PerformanceReviewExternalReviewerSC', () => {
    let externalReviewer: PerformanceReviewExternalReviewer;

    beforeEach(() => {
        externalReviewer = generateRandomExternalReviewer();
    });

    it('should serialize external reviewer', () => {
        const externalReviewerSerialized = new PerformanceReviewExternalReviewerSC().serialize(externalReviewer);

        expect(externalReviewerSerialized).not.toBeNull();

        checkPerformanceReviewExternalReviewerSerialized(externalReviewer, externalReviewerSerialized);
    });
});
