public void Setup() { _repository = Substitute.For <IProjectInformationRepository>(); _service = new ProjectInformationService(_repository); }
public ProjectInformationService(IProjectInformationRepository repository) { this.repository = repository; }
public ProjectInformationService(IProjectInformationRepository projectInformationRepository) : base(projectInformationRepository) { this.projectInformationRepository = projectInformationRepository; }
public ProjectInformationService(IProjectInformationRepository repository) { _repository = repository ?? throw new ArgumentNullException(nameof(repository)); }