Esempio n. 1
0
 public OfferAppServiceDirectPurchaseTest()
 {
     _moqSupplierQueries       = new Mock <ISupplierQueries>();
     _moqSupplierCommands      = new Mock <ISupplierCommands>();
     _moqQantityTemplatesProxy = new Mock <IQuantityTemplatesProxy>();
     _moqIdmAppService         = new Mock <IIDMAppService>();
     _moqConfiguration         = new Mock <IOptionsSnapshot <RootConfigurations> >();
     _moqConfiguration.Setup(x => x.Value).Returns(new RootConfigurationDefaults().DefaultRootConfigurationsFor());
     _moqBlockAppService                   = new Mock <IBlockAppService>();
     _moqOfferQueries                      = new Mock <IOfferQueries>();
     _moqOfferCommands                     = new Mock <IOfferCommands>();
     _moqTenderQueries                     = new Mock <ITenderQueries>();
     _moqTenderAppService                  = new Mock <ITenderAppService>();
     _moqTenderCommands                    = new Mock <ITenderCommands>();
     _moqMapper                            = new Mock <IMapper>();
     _moqHttpContextAccessor               = new Mock <IHttpContextAccessor>();
     _moqNotificationAppService            = new Mock <INotificationAppService>();
     _moqOfferDomainService                = new Mock <IOfferDomainService>();
     _moqLocalContentProxy                 = new Mock <ILocalContentProxy>();
     _moqSMEASizeInqueryProxy              = new Mock <ISMEASizeInquiryProxy>();
     _moqLocalContentConfigurationSettings = new Mock <ILocalContentConfigurationSettings>();
     _moqLocalContentPreferenceService     = new Mock <ILocalContentPreferenceService>();
     _sut = new OfferAppService(_moqOfferQueries.Object, _moqOfferCommands.Object, _moqOfferDomainService.Object, _moqMapper.Object, _moqNotificationAppService.Object, _moqTenderCommands.Object,
                                _moqTenderQueries.Object, _moqTenderAppService.Object, _moqHttpContextAccessor.Object, _moqSupplierQueries.Object, _moqSupplierCommands.Object, _moqIdmAppService.Object,
                                _moqQantityTemplatesProxy.Object, _moqBlockAppService.Object, _moqConfiguration.Object, _moqLocalContentProxy.Object, _moqSMEASizeInqueryProxy.Object,
                                _moqLocalContentConfigurationSettings.Object, _moqLocalContentPreferenceService.Object);
 }
Esempio n. 2
0
 public OfferController(GeneralAppService generalAppService, OfferAppService offerAppService)
 {
     _offerAppService   = offerAppService;
     _generalAppService = generalAppService;
 }