Пример #1
0
        public void SetUp()
        {
            viewService   = new Mock <IViewService>();
            dialogService = new Mock <IDialogService>();

            sut = new ZebraLabelPrinter();
        }
Пример #2
0
        public DrukEtykietViewModel(IDialogService dialogService,
                                    IViewService viewService,
                                    IUnitOfWork unitOfWork,
                                    IZebraLabelPrinter zebraLabelPrinter,
                                    IGeowlokninaHelper geowlokninaHelper,
                                    IMessenger messenger
                                    )
        {
            this.dialogService     = dialogService;
            this.viewService       = viewService;
            this.unitOfWork        = unitOfWork;
            this.zebraLabelPrinter = zebraLabelPrinter;
            this.geowlokninaHelper = geowlokninaHelper;
            this.messenger         = messenger;

            ZaladujWartosciPoczatkoweCommand = new RelayCommand(ZaladujWartosciPoczatkoweCommandExecuteAsync);
            DrukujCommand             = new RelayCommand(DrukujCommandExecuteAsync, DrukujCommandCanExecute);
            GenerujKodKreskowyCommand = new RelayCommand(GenerujKodKreskowyCommandExecute);
            ZapiszCommand             = new RelayCommand(ZapiszCommandExecute, ZapiszCommandCanExecute);
            PoZmianieIlosciCommand    = new RelayCommand(PoZmianieIlosciCommandExecute);
            ResetujCommand            = new RelayCommand(ResetujCommandExecute);

            StworzNowyLabelModel();
        }