public RequestProcess(IUserInputProcess input, IMusicContractService musicService,
                       IPartnerContractService partnerService, IContractService contractService, ITextFileReaderService musicFileReaderService, ITextFileReaderService partnerFileReaderService)
 {
     _musicService             = musicService;
     _partnerService           = partnerService;
     _contractService          = contractService;
     _musicFileReaderService   = musicFileReaderService;
     _partnerFileReaderService = partnerFileReaderService;
     _input = input;
 }
Пример #2
0
 public void SetUp()
 {
     _musicContractService           = new MusicContractService();
     _partnerContractService         = new PartnerContractService();
     _contractService                = new ContractService();
     _musicContractFileReaderService = new Mock <ITextFileReaderService>();
     _partnerContrFileReaderService  = new Mock <ITextFileReaderService>();
     _printService = new PrintService();
     _musicContractFileReaderService.Setup(x => x.ReadTextFile(It.IsAny <string>()))
     .Returns(TestData.GetMusicContractData);
     _partnerContrFileReaderService.Setup(x => x.ReadTextFile(It.IsAny <string>()))
     .Returns(TestData.GetPartnerContractData);
     _musicContractService.ProcessContract(TestData.GetMusicContractData());
     _partnerContractService.ProcessContract(TestData.GetPartnerContractData());
 }