Esempio n. 1
0
        public StandardEngine(
            ISettingsManager settingsManager,
            IBranchManager branchManager,
            ICommandLineManager commandLineManager,
            IBannerManager bannerManager,
            IAppearanceManager appearanceManager,
            IErrorManager errorManager,
            IDialogsManager dialogsManager,
            IHelpManager helpManager,
            IAdvancedMenuManager advancedMenuManager,
            IEndpointManager endpointManager
            )
        {
            SettingsManager = settingsManager;
            BranchManager = branchManager;
            BannerManager = bannerManager;
            AppearanceManager = appearanceManager;
            CommandLineManager = commandLineManager;
            ErrorManager = errorManager;
            DialogsManager = dialogsManager;
            HelpManager = helpManager;
            AdvancedMenuManager = advancedMenuManager;
            EndpointManager = endpointManager;

            Identifier = Guid.NewGuid();
        }
Esempio n. 2
0
        public AdvancedMenuModel(
            IAdvancedMenuManager advancedMenuManager,
            IAppearanceManager appearanceManager,
            IBranchManager branchManager,
            IHelpManager helpManager,
            AbstractDialogModel model)
        {
            IsEnabled = true;
            _advancedMenuManager = advancedMenuManager;
            _appearanceManager = appearanceManager;
            _branchManager = branchManager;
            _helpManager = helpManager;
            _model = model;
            _dialogInstance = new AdvancedMenuWindow { DataContext = this };
            BuildGroupsList();
            _width = 500;
            _height = 550;
            Cursor = Cursors.Arrow;
            Title = _advancedMenuManager.DefaultTitle;
            Description = _advancedMenuManager.DefaultDescription;
            _timer = new DispatcherTimer
                {
                    Interval = new TimeSpan(0, 0, 0, 0, 500),
                    IsEnabled = false,
                };

            _timer.Tick += TimerTickHandler;
        }
 public AdvancedMenuGroupModel(IAppearanceManager appearanceManager, IBranchManager branchManager, AdvancedMenuModel model, string groupName)
 {
     _appearanceManager = appearanceManager;
     _branchManager = branchManager;
     _model = model;
     Title = groupName;
     _model.PropertyChanged += PropertyChangedHandler;
 }
Esempio n. 4
0
 public AdvancedMenuManager(IAppearanceManager appearanceManager, IBranchManager branchManager, IHelpManager helpManager, ISettingsManager settingsManager)
 {
     _appearanceManager = appearanceManager;
     _branchManager = branchManager;
     _helpManager = helpManager;
     _settingsManager = settingsManager;
     Items = new Dictionary<string, IAdvancedMenuItem>();
     DefaultTitle = "Advanced Support Tools";
     DefaultDescription = "This is a place-holder description.";
 }
Esempio n. 5
0
 public AdvancedMenuItemModel(IAdvancedMenuItem item, AdvancedMenuModel model, IAppearanceManager appearanceManager, IBranchManager branchManager)
 {
     _item = item;
     _model = model;
     _appearanceManager = appearanceManager;
     _branchManager = branchManager;
     Background = _appearanceManager.BodyTextBrush;
     GraphicForeground = _appearanceManager.BodyTextBrush;
     GraphicBackground = _appearanceManager.BackgroundBrush;
     TextBrush = _appearanceManager.BackgroundBrush;
     _model.PropertyChanged += PropertyChangedHandler;
 }
Esempio n. 6
0
 public OperationHeadController(IVatManager iVatManager, IBranchManager iBranchManager, IClientManager iClientManager, IOrderManager iOrderManager, IReportManager iReportManager, IDepartmentManager iDepartmentManager, IEmployeeManager iEmployeeManager, IInventoryManager iInventoryManager, ICommonManager iCommonManager, IDiscountManager iDiscountManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IAccountsManager iAccountsManager, IInvoiceManager iInvoiceManager, IDivisionGateway iDivisionGateway, IProductManager iProductManager)
 {
     _iVatManager        = iVatManager;
     _iBranchManager     = iBranchManager;
     _iClientManager     = iClientManager;
     _iOrderManager      = iOrderManager;
     _iReportManager     = iReportManager;
     _iDepartmentManager = iDepartmentManager;
     _iEmployeeManager   = iEmployeeManager;
     _iInventoryManager  = iInventoryManager;
     _iCommonManager     = iCommonManager;
     _iDiscountManager   = iDiscountManager;
     _iRegionManager     = iRegionManager;
     _iTerritoryManager  = iTerritoryManager;
     _iAccountsManager   = iAccountsManager;
     _iInvoiceManager    = iInvoiceManager;
     _iDivisionGateway   = iDivisionGateway;
     _iProductManager    = iProductManager;
 }
Esempio n. 7
0
        public void Update()
        {
            UnityResolver.Register();
            IBranchManager BranchManager = UnityResolver.Resolve <IBranchManager>();

            Branch branch = BranchManager.FindById(91);

            branch.Address = "Panadura" + DateTime.Now.ToString();

            bool isUpdate = BranchManager.Update(branch);

            BranchManager.Save();

            Branch branch1 = BranchManager.FindById(93);

            string expected = "Panadura";
            string actual   = branch1.Address;

            Assert.AreEqual(expected, actual);
        }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Retroactive"/> class.
 /// </summary>
 /// <param name="eventStore">Event store</param>
 /// <param name="sagaStore">Saga store</param>
 /// <param name="graph">Graph</param>
 /// <param name="manager">Branch manager</param>
 /// <param name="streamLocator">Stream locator</param>
 /// <param name="repository">Aggregate repository</param>
 /// <param name="sagaRepository">Saga repository</param>
 /// <param name="log">Log service</param>
 /// <param name="commandRegistry">Command registry</param>
 public Retroactive(
     IEventStore<IAggregate> eventStore,
     IEventStore<ISaga> sagaStore,
     IGraph graph,
     IBranchManager manager,
     IStreamLocator streamLocator,
     IEsRepository<IAggregate> repository,
     IEsRepository<ISaga> sagaRepository,
     ILog log, 
     ICommandRegistry commandRegistry)
 {
     _eventStore = eventStore;
     _graph = graph;
     _manager = manager;
     _streamLocator = streamLocator;
     _sagaStore = sagaStore;
     _repository = repository;
     _sagaRepository = sagaRepository;
     _log = log;
     _commandRegistry = commandRegistry;
 }
Esempio n. 9
0
 public AssetLocationController()
 {
     _assetLocationManager = new AssetLocationManager();
     _organizationManager  = new OrganizationManager();
     _branchManager        = new BranchManager();
 }
 public AssetRegistrationController(IAssetRegistrationManager _manager, UiLoader.UiLoader _loader, IOrganizationManager _organizationManager, IAssetRegistrationDetailsManager _assetRegDetailsManager, IUserManager _userManager, IBranchManager _branchManager, IAssetManager _assetManager, INewAssetManager _newAssetManager)
 {
     assetRegistrationManager = _manager;
     loader = _loader;
     organizationManager    = _organizationManager;
     assetRegDetailsManager = _assetRegDetailsManager;
     userManager            = _userManager;
     branchManager          = _branchManager;
     assetManager           = _assetManager;
     newAssetManager        = _newAssetManager;
 }
Esempio n. 11
0
 public RequisitionController(IDeliveryManager iDeliveryManager, IInventoryManager iInventoryManager, IProductManager iProductManager, IClientManager iClientManager, IInvoiceManager iInvoiceManager, ICommonManager iCommonManager, IOrderManager iOrderManager, IBranchManager iBranchManager, IEmployeeManager iEmployeeManager, IFactoryDeliveryManager iFactoryDeliveryManager)
 {
     _iDeliveryManager        = iDeliveryManager;
     _iInventoryManager       = iInventoryManager;
     _iProductManager         = iProductManager;
     _iClientManager          = iClientManager;
     _iInvoiceManager         = iInvoiceManager;
     _iCommonManager          = iCommonManager;
     _iOrderManager           = iOrderManager;
     _iBranchManager          = iBranchManager;
     _iEmployeeManager        = iEmployeeManager;
     _iFactoryDeliveryManager = iFactoryDeliveryManager;
 }
Esempio n. 12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseQueries"/> class.
 /// </summary>
 /// <param name="log">Log service</param>
 /// <param name="bus">Bus service</param>
 /// <param name="manager">Branch manager service</param>
 public BaseQueries(ILog log, IBus bus, IBranchManager manager)
     : base(bus)
 {
     _log     = log;
     _manager = manager;
 }
 public ClientController(IClientManager iClientManager, ICommonManager iCommonManager, IRegionManager iRegionManager, ITerritoryManager iTerritoryManager, IDistrictManager iDistrictManager, IUpazillaGateway iUpazillaGateway, IPostOfficeGateway iPostOfficeGateway, IBranchManager iBranchManager)
 {
     _iClientManager     = iClientManager;
     _iCommonManager     = iCommonManager;
     _iRegionManager     = iRegionManager;
     _iTerritoryManager  = iTerritoryManager;
     _iDistrictManager   = iDistrictManager;
     _iUpazillaGateway   = iUpazillaGateway;
     _iPostOfficeGateway = iPostOfficeGateway;
     _iBranchManager     = iBranchManager;
 }
Esempio n. 14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BranchAction"/> class.
 /// </summary>
 /// <param name="manager">Branch manager</param>
 /// <param name="bus">Command bus</param>
 public BranchAction(IBranchManager manager, IBus bus)
 {
     _manager = manager;
     _bus     = bus;
     _id      = Guid.NewGuid();
 }
 public BranchController(IBranchManager _db)
 {
     this.BranchManager = _db;
 }
Esempio n. 16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GraphQlMutation"/> class.
 /// </summary>
 /// <param name="bus">Bus service</param>
 /// <param name="log">Log service</param>
 /// <param name="manager">Branch manager</param>
 protected GraphQlMutation(IBus bus, ILog log, IBranchManager manager)
 {
     _bus     = bus;
     _log     = log;
     _manager = manager;
 }
Esempio n. 17
0
 public BranchController()
 {
     PartialMenuView();
     _branchManager       = new BranchManager();
     _organizationManager = new OrganizationManager();
 }
 public WarrantyBatteryController(IInventoryManager iInventoryManager, ICommonManager iCommonManager, IServiceManager iServiceManager, IBranchManager iBranchManager, IPolicyManager iPolicyManager, IClientManager iClientManager, IReportManager iReportManager, IProductReplaceManager iProductReplaceManager)
 {
     _iInventoryManager      = iInventoryManager;
     _iCommonManager         = iCommonManager;
     _iServiceManager        = iServiceManager;
     _iBranchManager         = iBranchManager;
     _iPolicyManager         = iPolicyManager;
     _iClientManager         = iClientManager;
     _iReportManager         = iReportManager;
     _iProductReplaceManager = iProductReplaceManager;
 }
Esempio n. 19
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RebaseManager" /> class.
 /// </summary>
 /// <param name="processManager">The process manager which invokes GIT commands.</param>
 /// <param name="branchManager">The branch manager which will get's GIT branch information.</param>
 public RebaseManager(IGitProcessManager processManager, IBranchManager branchManager)
 {
     this.gitProcess    = processManager;
     this.branchManager = branchManager;
 }
Esempio n. 20
0
 public BranchesController(IBranchManager branchManager)
 {
     _BranchManager = branchManager;
 }
 public OrderSalesAdminController(IOrderManager iOrderManager, IClientManager iClientManager, IDeliveryManager iDeliveryManager, IInvoiceManager iInvoiceManager, IBranchManager iBranchManager)
 {
     _iOrderManager    = iOrderManager;
     _iClientManager   = iClientManager;
     _iDeliveryManager = iDeliveryManager;
     _iInvoiceManager  = iInvoiceManager;
     _iBranchManager   = iBranchManager;
 }
Esempio n. 22
0
File: Config.cs Progetto: zedr0n/ZES
 public Mutations(IBus bus, ILog log, IBranchManager manager)
     : base(bus, log, manager)
 {
 }
Esempio n. 23
0
 public BranchesController(IBranchManager branchManager, IUnitOfWork unitOfWork)
 {
     this.branchManager = branchManager;
     this.unitOfWork    = unitOfWork;
 }
Esempio n. 24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GitSquashWrapper" /> class.
 /// </summary>
 /// <param name="repoDirectory">The directory where the repository is located</param>
 /// <param name="logger">The output logger to output GIT transactions.</param>
 /// <param name="gitProcess">The GIT process to use.</param>
 public GitSquashWrapper(string repoDirectory, IOutputLogger logger, IGitProcessManager gitProcess = null)
 {
     this.repoDirectory = repoDirectory;
     this.gitProcess    = gitProcess ?? new GitProcessManager(repoDirectory, logger);
     this.branchManager = new BranchManager(this.repoDirectory, null);
 }
 public OrderNsmController(IOrderManager iOrderManager, IInventoryManager iInventoryManager, IProductManager iProductManager, IClientManager iClientManager, IBranchManager iBranchManager, IDeliveryManager iDeliveryManager)
 {
     _iOrderManager     = iOrderManager;
     _iInventoryManager = iInventoryManager;
     _iProductManager   = iProductManager;
     _iClientManager    = iClientManager;
     _iBranchManager    = iBranchManager;
     _iDeliveryManager  = iDeliveryManager;
 }
Esempio n. 26
0
 public RequisitionController(IProductManager iProductManager, IInventoryManager iInventoryManager, IBranchManager iBranchManager)
 {
     _iProductManager   = iProductManager;
     _iInventoryManager = iInventoryManager;
     _iBranchManager    = iBranchManager;
 }
 public HomeController(ICommonManager iCommonManager, IProductManager iProductManager, IBranchManager iBranchManager, IEmployeeManager iEmployeeManager)
 {
     _iCommonManager   = iCommonManager;
     _iProductManager  = iProductManager;
     _iBranchManager   = iBranchManager;
     _iEmployeeManager = iEmployeeManager;
 }
 public TransferController(IProductManager iProductManager, IInventoryManager iInventoryManager, IBranchManager iBranchManager)
 {
     _iProductManager   = iProductManager;
     _iInventoryManager = iInventoryManager;
     _iBranchManager    = iBranchManager;
 }
 public ReportController(IReportManager iReportManager, IBranchManager iBranchManager, IDeliveryManager iDeliveryManager)
 {
     _iReportManager   = iReportManager;
     _iBranchManager   = iBranchManager;
     _iDeliveryManager = iDeliveryManager;
 }
Esempio n. 30
0
 public BranchController(IBranchManager branchManager)
 {
     BranchManager = branchManager;
 }
Esempio n. 31
0
        // GET: Factory/Approve

        public ApproveController(IProductManager iProductManager, IBranchManager iBranchManager)
        {
            _iProductManager = iProductManager;
            _iBranchManager  = iBranchManager;
        }
Esempio n. 32
0
 public BranchController(IBranchManager iBranchManager)
 {
     _iBranchManager = iBranchManager;
 }
 public ProductController(IInventoryManager iInventoryManager, IProductManager iProductManager, IBranchManager iBranchManager, IReportManager iReportManager, IBarCodeManager iBarCodeManager)
 {
     _iInventoryManager = iInventoryManager;
     _iProductManager   = iProductManager;
     _iBranchManager    = iBranchManager;
     _iReportManager    = iReportManager;
     _iBarCodeManager   = iBarCodeManager;
 }
Esempio n. 34
0
 public BranchManagerTests()
 {
     this.branchManager = new BranchManager(this.mockBranchRepository.Object);
 }
 public BranchController(IBranchManager _branchManager, IOrganizationManager _organizationManager, IUserManager _userManager)
 {
     branchManager       = _branchManager;
     organizationManager = _organizationManager;
     userManager         = _userManager;
 }