Esempio n. 1
0
        public void TestMethod1()
        {
            //DAL
            //var ConnStr = ConfigurationManager.AppSettings["Trackboard"];
            //Title Databases
            //using (var repo = new CategoryRepo(new KBUOW<KBContext>()))
            //{
            //    var a = repo.All.Any(c => c.Title == "Databases");
            //    Assert.IsTrue(repo.All.Any(c => c.Title == "Databases"));
            //}

            //CategoryBL cBL = new CategoryBL();
            //Assert.IsTrue(cBL.GetAll().Any(c => c.Title == "Databases"));

            WizardBL wBL = new WizardBL();
            //WizardVO wizardVo = wBL.FindById(2);
            WizardVO wizardVo = new WizardVO();

            wizardVo.Problem.Title         = "TEST 4";
            wizardVo.Problem.SubCategoryID = 1;
            //wizardVo.Solution.Title = "TEEST";
            //wizardVo.Steps[0].Title = "AAA";

            //StepVO s = new StepVO();
            //s.SolutionID = wizardVo.Solution.SolutionId;
            //s.Title = "Second Step";

            //wizardVo.Steps.Add(s);

            wBL.Save(wizardVo);
        }
        public WizardViewModel(IRegionManager regionManager)
        {
            Wizard = new WizardVO();

            _categoryBL = new CategoryBL();
            _categories = new ObservableCollection <CategoryVO>(_categoryBL.FindAll());

            _subCategoryBL = new SubCategoryBL();
            _wizardBL      = new WizardBL();

            Problem = new ProblemVO();
        }
Esempio n. 3
0
        public PaSViewModel(IRegionManager regionManager)
        {
            _problemBL = new ProblemBL();
            _problems  = new ObservableCollection <ProblemVO>(_problemBL.FindAll());

            _wizardBL = new WizardBL();

            DeleteProblemCmd            = new DelegateCommand <ProblemVO>(RaiseDeleteConfirmation);
            DeleteProblemConfirmRequest = new InteractionRequest <IConfirmation>();
            ProblemDeletionFailedNotificationRequest = new InteractionRequest <INotification>();

            SearchProblemCmd = new DelegateCommand(Search);
        }