コード例 #1
0
ファイル: StandardEngine.cs プロジェクト: jardrake03/incert
        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();
        }
コード例 #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;
        }
コード例 #3
0
 public AdvancedMenuGroupModel(IAppearanceManager appearanceManager, IBranchManager branchManager, AdvancedMenuModel model, string groupName)
 {
     _appearanceManager = appearanceManager;
     _branchManager = branchManager;
     _model = model;
     Title = groupName;
     _model.PropertyChanged += PropertyChangedHandler;
 }
コード例 #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.";
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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);
        }
コード例 #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;
 }
コード例 #9
0
 public AssetLocationController()
 {
     _assetLocationManager = new AssetLocationManager();
     _organizationManager  = new OrganizationManager();
     _branchManager        = new BranchManager();
 }
コード例 #10
0
 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;
 }
コード例 #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;
 }
コード例 #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;
 }
コード例 #13
0
 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;
 }
コード例 #14
0
ファイル: BranchAction.cs プロジェクト: zedr0n/ZES
 /// <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;
 }
コード例 #16
0
ファイル: GraphQlMutation.cs プロジェクト: zedr0n/ZES
 /// <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;
 }
コード例 #17
0
 public BranchController()
 {
     PartialMenuView();
     _branchManager       = new BranchManager();
     _organizationManager = new OrganizationManager();
 }
コード例 #18
0
 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;
 }
コード例 #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;
 }
コード例 #20
0
 public BranchesController(IBranchManager branchManager)
 {
     _BranchManager = branchManager;
 }
コード例 #21
0
 public OrderSalesAdminController(IOrderManager iOrderManager, IClientManager iClientManager, IDeliveryManager iDeliveryManager, IInvoiceManager iInvoiceManager, IBranchManager iBranchManager)
 {
     _iOrderManager    = iOrderManager;
     _iClientManager   = iClientManager;
     _iDeliveryManager = iDeliveryManager;
     _iInvoiceManager  = iInvoiceManager;
     _iBranchManager   = iBranchManager;
 }
コード例 #22
0
ファイル: Config.cs プロジェクト: zedr0n/ZES
 public Mutations(IBus bus, ILog log, IBranchManager manager)
     : base(bus, log, manager)
 {
 }
コード例 #23
0
 public BranchesController(IBranchManager branchManager, IUnitOfWork unitOfWork)
 {
     this.branchManager = branchManager;
     this.unitOfWork    = unitOfWork;
 }
コード例 #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);
 }
コード例 #25
0
 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;
 }
コード例 #26
0
 public RequisitionController(IProductManager iProductManager, IInventoryManager iInventoryManager, IBranchManager iBranchManager)
 {
     _iProductManager   = iProductManager;
     _iInventoryManager = iInventoryManager;
     _iBranchManager    = iBranchManager;
 }
コード例 #27
0
 public HomeController(ICommonManager iCommonManager, IProductManager iProductManager, IBranchManager iBranchManager, IEmployeeManager iEmployeeManager)
 {
     _iCommonManager   = iCommonManager;
     _iProductManager  = iProductManager;
     _iBranchManager   = iBranchManager;
     _iEmployeeManager = iEmployeeManager;
 }
コード例 #28
0
 public TransferController(IProductManager iProductManager, IInventoryManager iInventoryManager, IBranchManager iBranchManager)
 {
     _iProductManager   = iProductManager;
     _iInventoryManager = iInventoryManager;
     _iBranchManager    = iBranchManager;
 }
コード例 #29
0
 public ReportController(IReportManager iReportManager, IBranchManager iBranchManager, IDeliveryManager iDeliveryManager)
 {
     _iReportManager   = iReportManager;
     _iBranchManager   = iBranchManager;
     _iDeliveryManager = iDeliveryManager;
 }
コード例 #30
0
 public BranchController(IBranchManager branchManager)
 {
     BranchManager = branchManager;
 }
コード例 #31
0
        // GET: Factory/Approve

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