public CarsApplication(IRecorder recorder, IIdentifierFactory idFactory, ICarStorage storage, IPersonsService personsService) { recorder.GuardAgainstNull(nameof(recorder)); idFactory.GuardAgainstNull(nameof(idFactory)); storage.GuardAgainstNull(nameof(storage)); personsService.GuardAgainstNull(nameof(personsService)); this.recorder = recorder; this.idFactory = idFactory; this.storage = storage; this.personsService = personsService; }
public ClinicsApplication(ILogger logger, IIdentifierFactory idFactory, IClinicStorage storage, IPersonsService personsService) { logger.GuardAgainstNull(nameof(logger)); idFactory.GuardAgainstNull(nameof(idFactory)); storage.GuardAgainstNull(nameof(storage)); personsService.GuardAgainstNull(nameof(personsService)); this.logger = logger; this.idFactory = idFactory; this.storage = storage; this.personsService = personsService; }