Exemplo n.º 1
0
 /// <summary>
 /// Sets the <see cref="IResourceManagerFactory"/> used to create instances of <see cref="ResourceManager"/>
 /// for retrieving localized resources. Defaults to <see cref="BundleResourceManagerFactory"/> if not set. LUCENENET specific.
 /// </summary>
 /// <param name="resourceManagerFactory">The <see cref="IResourceManagerFactory"/> instance. Cannot be <c>null</c>.</param>
 // LUCENENET NOTE: Don't make this into a property in case we need to make it into an extension method
 // in a centralized DI configuration builder.
 public static void SetResourceManagerFactory(IResourceManagerFactory resourceManagerFactory)
 {
     if (resourceManagerFactory == null)
     {
         throw new ArgumentNullException("resourceManagerFactory");
     }
     NLS.resourceManagerFactory = resourceManagerFactory;
 }
Exemplo n.º 2
0
 //Constructor
 public CustomerDetails(DAL.CRM.ICustomerDetails crmCustomerDetails,
                        Utility.IGenerator codeGenerator,
                        IResourceManagerFactory resourceManager,
                        ILogger logger,
                        IEmailHandler emailHandler = null)
 {
     this.codeGenerator      = codeGenerator;
     this.crmCustomerDetails = crmCustomerDetails;
     this.resourceManager    = resourceManager;
     this.emailHandler       = emailHandler;
     this.logger             = logger;
 }
Exemplo n.º 3
0
 //Constructor
 /// <summary>
 /// Constructor Name        : BeginningOfDayOfServiceCheckIn
 /// Author                  : Pratik Soni
 /// Creation Date           : 28 Feb 2018
 /// Purpose                 : To create instant of APIHelper class
 /// Revision                :
 /// </summary>
 public EndOfServiceCheckIn(IAPIHelper apiHelper,
                            IGenericMethods genericMethods,
                            AlertJSONGenerator.IEndOfServiceCheckInGenerator endOfServiceCheckInGenerator,
                            IResourceManagerFactory resourceManager,
                            ILogger logger)
 {
     this.apiHelper      = apiHelper;
     this.genericMethods = genericMethods;
     this.endOfServiceCheckInGenerator = endOfServiceCheckInGenerator;
     this.resourceManager = resourceManager;
     this.logger          = logger;
 }
Exemplo n.º 4
0
 //Constructor
 /// <summary>
 /// Constructor Name        : AlertAPIServices
 /// Author                  : Pratik Soni
 /// Creation Date           : 14 Feb 2018
 /// Purpose                 : To create instant of APIHelper class
 /// Revision                :
 /// </summary>
 public PreMoveConfirmationNotifications(IAPIHelper apiHelper,
                                         IGenericMethods genericMethods,
                                         AlertJSONGenerator.IPreMoveConfirmationNotificationGenerator preMoveConfirmationNotification,
                                         IResourceManagerFactory resourceManager,
                                         ILogger logger)
 {
     this.apiHelper      = apiHelper;
     this.genericMethods = genericMethods;
     this.preMoveConfirmationNotification = preMoveConfirmationNotification;
     this.resourceManager = resourceManager;
     this.logger          = logger;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor Name        : FinalPaymentMade
 /// Author                  : Ranjana Singh
 /// Creation Date           : 28 Feb 2018
 /// Purpose                 : To create instance of FinalPaymentMade class
 /// Revision                :
 /// </summary>
 public FinalPaymentMade(IAPIHelper apiHelper,
                         IGenericMethods genericMethods,
                         AlertJSONGenerator.IFinalPaymentMadeGenerator finalPaymentMadeGenerator,
                         IResourceManagerFactory resourceManager,
                         ILogger logger)
 {
     this.apiHelper                 = apiHelper;
     this.genericMethods            = genericMethods;
     this.finalPaymentMadeGenerator = finalPaymentMadeGenerator;
     this.resourceManager           = resourceManager;
     this.logger = logger;
 }
Exemplo n.º 6
0
 //constructor
 public AlertDetails(ICRMTODTOMapper crmTODTOMapper,
                     DAL.CRM.ICustomerDetails crmCustomerDetails,
                     ICRMUtilities crmUtilities,
                     IDTOToCRMMapper dtoToCRMMapper,
                     IResourceManagerFactory resourceManager,
                     ILogger logger)
 {
     this.crmUtilities       = crmUtilities;
     this.crmCustomerDetails = crmCustomerDetails;
     this.crmTODTOMapper     = crmTODTOMapper;
     this.dtoToCRMMapper     = dtoToCRMMapper;
     this.resourceManager    = resourceManager;
     this.logger             = logger;
 }
Exemplo n.º 7
0
 //constructor
 public PaymentDetails(IDTOToCRMMapper dtoToCRMMapper,
                       ICRMTODTOMapper crmToDTOMapper,
                       ICRMUtilities crmUtilities,
                       IMoveDetails dalMoveDetails,
                       ICustomerDetails dalCustomerDetails,
                       IResourceManagerFactory resourceManager,
                       ILogger logger)
 {
     this.crmUtilities       = crmUtilities;
     this.dtoToCRMMapper     = dtoToCRMMapper;
     this.crmToDTOMapper     = crmToDTOMapper;
     this.dalMoveDetails     = dalMoveDetails;
     this.dalCustomerDetails = dalCustomerDetails;
     this.resourceManager    = resourceManager;
     this.logger             = logger;
 }
Exemplo n.º 8
0
 //Constructor
 public EstimateDetails(ICustomerDetails customerDetails,
                        ICRMUtilities objCrmUtilities,
                        JKMServices.DAL.CRM.IMoveDetails crmMoveDetails,
                        ICRMTODTOMapper objCRMToDTOMapper,
                        IDTOToCRMMapper objDTOToCRMMapper,
                        IResourceManagerFactory resourceManager,
                        ILogger logger)
 {
     this.customerDetails   = customerDetails;
     this.objCrmUtilities   = objCrmUtilities;
     this.crmMoveDetails    = crmMoveDetails;
     this.resourceManager   = resourceManager;
     this.objCRMToDTOMapper = objCRMToDTOMapper;
     this.objDTOToCRMMapper = objDTOToCRMMapper;
     this.logger            = logger;
 }
Exemplo n.º 9
0
 //Constructor
 public EstimateDetails(DAL.CRM.ICustomerDetails crmCustomerDetails,
                        DAL.CRM.IEstimateDetails crmEstimateDetails,
                        DAL.CRM.IMoveDetails crmMoveDetails,
                        IEmailHandler emailHandler,
                        ILogger logger,
                        IResourceManagerFactory resourceManager,
                        ISharepointConsumer sharepointConsumer)
 {
     this.crmCustomerDetails = crmCustomerDetails;
     this.crmEstimateDetails = crmEstimateDetails;
     this.crmMoveDetails     = crmMoveDetails;
     this.resourceManager    = resourceManager;
     this.emailHandler       = emailHandler;
     this.logger             = logger;
     this.sharepointConsumer = sharepointConsumer;
 }
Exemplo n.º 10
0
        /// <summary>
        /// Parses run configuration XML file to get ExecutionData.
        /// </summary>
        public static IEnumerable <TestExecutionData> ParseExecutionData(
            string filePath,
            IResourceManagerFactory resourceManagerFactory,
            ITestCaseFactory testCaseFactory,
            string testGroupName,
            TestCategory targetTestCategory)
        {
            XDocument xDoc = XDocument.Load(filePath);

            XElement         resourcesElement = xDoc.Root.Element("Resources");
            IResourceManager resourceManager  = resourceManagerFactory.GetResourceManager(resourcesElement);

            XElement prereqCasesElement = xDoc.Root.Element("PrereqCases") ?? new XElement("PrereqCases");
            IEnumerable <ITestCase>        prereqCases           = testCaseFactory.GetTestCases(prereqCasesElement, targetTestCategory);
            Dictionary <string, ITestCase> prereqCasesDictionary = prereqCases.ToDictionary(e => e.Name);

            return(xDoc.Root.Elements("TestGroup")
                   .SelectMany(x => GetTestExecutionDataForGroup(x, prereqCasesDictionary, testCaseFactory, resourceManager, targetTestCategory)));
        }
Exemplo n.º 11
0
 /// <summary>
 /// Constructor Name     : LogService
 /// Author               : Pratik Soni
 /// Creation Date        : 14 Feb 2017
 /// </summary>
 public WindowsService(MoveManager.IMoveDetails moveDetails,
                       AlertManager.IBookYourMove bookYourMove,
                       AlertManager.IPreMoveConfirmationNotifications preMoveConfirmationNotifications,
                       AlertManager.IBeginningOfDayOfServiceCheckIn beginningOfDayOfServiceCheckIn,
                       AlertManager.IEndOfServiceCheckIn endOfServiceCheckIn,
                       AlertManager.IFinalPaymentMade finalPaymentMade,
                       IResourceManagerFactory resourceManager,
                       ILogger logger)
 {
     InitializeComponent();
     this.moveDetails  = moveDetails;
     this.bookYourMove = bookYourMove;
     this.preMoveConfirmationNotifications = preMoveConfirmationNotifications;
     this.beginningOfDayOfServiceCheckIn   = beginningOfDayOfServiceCheckIn;
     this.endOfServiceCheckIn = endOfServiceCheckIn;
     this.finalPaymentMade    = finalPaymentMade;
     this.resourceManager     = resourceManager;
     this.logger = logger;
 }
Exemplo n.º 12
0
 public CRMTODTOMapper(IResourceManagerFactory resourceManager, ILogger logger)
 {
     this.resourceManager = resourceManager;
     this.logger          = logger;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Sets the <see cref="IResourceManagerFactory"/> used to create instances of <see cref="ResourceManager"/>
 /// for retrieving localized resources. Defaults to <see cref="BundleResourceManagerFactory"/> if not set. LUCENENET specific.
 /// </summary>
 /// <param name="resourceManagerFactory">The <see cref="IResourceManagerFactory"/> instance. Cannot be <c>null</c>.</param>
 // LUCENENET NOTE: Don't make this into a property in case we need to make it into an extension method
 // in a centralized DI configuration builder.
 public static void SetResourceManagerFactory(IResourceManagerFactory resourceManagerFactory)
 {
     NLS.resourceManagerFactory = resourceManagerFactory ?? throw new ArgumentNullException(nameof(resourceManagerFactory));
 }
Exemplo n.º 14
0
 public FinalPaymentMadeGenerator(IResourceManagerFactory resourceManager)
 {
     this.resourceManager = resourceManager;
 }
Exemplo n.º 15
0
 public JKMDBContext(IResourceManagerFactory resourceManager) : base()
 {
     this.resourceManager = resourceManager;
 }
Exemplo n.º 16
0
 public ResourceCollection(ResourceDefinitions definitions, IResourceManagerFactory managerFactory)
 {
     _definitions    = definitions;
     _managerFactory = managerFactory;
 }
        public ResourceManagerResolver(IResourceManagerFactory resourceManagerFactory)
        {
            ArgumentUtility.CheckNotNull("resourceManagerFactory", resourceManagerFactory);

            _resourceManagerFactory = resourceManagerFactory;
        }
 public PreMoveConfirmationNotificationGenerator(IResourceManagerFactory resourceManager,
                                                 Utility.Log.ILogger logger)
 {
     this.resourceManager = resourceManager;
     this.logger          = logger;
 }
Exemplo n.º 19
0
 public EndOfServiceCheckInGenerator(IResourceManagerFactory resourceManager)
 {
     this.resourceManager = resourceManager;
 }
Exemplo n.º 20
0
 //Constructor
 public CRMUtilities(IResourceManagerFactory resourceManager, ILogger logger)
 {
     this.resourceManager = resourceManager;
     this.logger          = logger;
 }
Exemplo n.º 21
0
 public BeginningOfDayOfServiceGenerator(IResourceManagerFactory resourceManager)
 {
     this.resourceManager = resourceManager;
 }
Exemplo n.º 22
0
 public BookYourMoveGenerator(IResourceManagerFactory resourceManager)
 {
     this.resourceManager = resourceManager;
 }
 public void SetUp()
 {
     _factory = new ResourceAttributeBasedResourceManagerFactory();
 }