public ImportNotificationValidatorTests()
        {
            var countryRepository            = A.Fake <Domain.ICountryRepository>();
            var addressValidator             = new AddressValidator(countryRepository);
            var contactValidator             = A.Fake <ContactValidator>();
            var exporterValidator            = new ExporterValidator(addressValidator, contactValidator);
            var facilityValidator            = A.Fake <FacilityValidator>();
            var facilitiesValidator          = new FacilityCollectionValidator(facilityValidator);
            var importerValidator            = new ImporterValidator(addressValidator, contactValidator);
            var importRepository             = A.Fake <Domain.ImportNotification.IImportNotificationRepository>();
            var preconsentedValidator        = new PreconsentedValidator(importRepository);
            var producerValidator            = new ProducerValidator(addressValidator, contactValidator);
            var draftImportRepository        = A.Fake <DataAccess.Draft.IDraftImportNotificationRepository>();
            var shipmentValidator            = new ShipmentValidator(draftImportRepository);
            var entryOrExitPointRepository   = A.Fake <Domain.TransportRoute.IEntryOrExitPointRepository>();
            var competentAuthorityRepository = A.Fake <Domain.ICompetentAuthorityRepository>();
            var stateOfExportValidator       = new StateOfExportValidator(entryOrExitPointRepository, competentAuthorityRepository);
            var stateOfImportValidator       = new StateOfImportValidator(countryRepository, competentAuthorityRepository, entryOrExitPointRepository);
            var transitStateValidator        = new TransitStateValidator(entryOrExitPointRepository, competentAuthorityRepository);
            var transitStatesValidator       = new TransitStateCollectionValidator(transitStateValidator);
            var wasteOperationValidator      = new WasteOperationValidator();
            var wasteTypeValidator           = new WasteTypeValidator();
            var chemicalCompositionValidator = new ChemicalCompositionValidator();

            validator = new ImportNotificationValidator(exporterValidator,
                                                        facilitiesValidator,
                                                        importerValidator,
                                                        preconsentedValidator,
                                                        producerValidator,
                                                        shipmentValidator,
                                                        stateOfExportValidator,
                                                        stateOfImportValidator,
                                                        transitStatesValidator,
                                                        wasteOperationValidator,
                                                        wasteTypeValidator,
                                                        chemicalCompositionValidator);
        }
 public ImportNotificationValidatorTests()
 {
     var countryRepository = A.Fake<Domain.ICountryRepository>();
     var addressValidator = new AddressValidator(countryRepository);
     var contactValidator = A.Fake<ContactValidator>();
     var exporterValidator = new ExporterValidator(addressValidator, contactValidator);
     var facilityValidator = A.Fake<FacilityValidator>();
     var facilitiesValidator = new FacilityCollectionValidator(facilityValidator);
     var importerValidator = new ImporterValidator(addressValidator, contactValidator);
     var importRepository = A.Fake<Domain.ImportNotification.IImportNotificationRepository>();
     var preconsentedValidator = new PreconsentedValidator(importRepository);
     var producerValidator = new ProducerValidator(addressValidator, contactValidator);
     var draftImportRepository = A.Fake<DataAccess.Draft.IDraftImportNotificationRepository>();
     var shipmentValidator = new ShipmentValidator(draftImportRepository);
     var entryOrExitPointRepository = A.Fake<Domain.TransportRoute.IEntryOrExitPointRepository>();
     var competentAuthorityRepository = A.Fake<Domain.ICompetentAuthorityRepository>();
     var stateOfExportValidator = new StateOfExportValidator(entryOrExitPointRepository, competentAuthorityRepository);
     var stateOfImportValidator = new StateOfImportValidator(countryRepository, competentAuthorityRepository, entryOrExitPointRepository);
     var transitStateValidator = new TransitStateValidator(entryOrExitPointRepository, competentAuthorityRepository);
     var transitStatesValidator = new TransitStateCollectionValidator(transitStateValidator);
     var wasteOperationValidator = new WasteOperationValidator();
     var wasteTypeValidator = new WasteTypeValidator();
     var chemicalCompositionValidator = new ChemicalCompositionValidator();
     validator = new ImportNotificationValidator(exporterValidator,
         facilitiesValidator,
         importerValidator,
         preconsentedValidator,
         producerValidator,
         shipmentValidator,
         stateOfExportValidator,
         stateOfImportValidator,
         transitStatesValidator,
         wasteOperationValidator,
         wasteTypeValidator,
         chemicalCompositionValidator);
 }
Пример #3
0
 public WasteTypeValidatorTests()
 {
     validator = new WasteTypeValidator();
 }
 public WasteTypeValidatorTests()
 {
     validator = new WasteTypeValidator();
 }