public void Setup() { _fakePromptsViewModelService = new FakePromptsViewModelService(); _reportsViewModel = new Mock <IPopupReportViewModel>(); _promptsViewModel = new PromptsViewModel( _fakePromptsViewModelService.Object , _reportsViewModel.Object); }
private static IWorkbookSet showPromptWindow(AKProduct product, Project project, string productCutx, SpecificationGroup specificationGroup) { string globalGvfx = Path.Combine(project.JobPath, specificationGroup.GlobalFileName); string cutPartsCtpx = Path.Combine(project.JobPath, specificationGroup.CutPartsFileName); string edgeEdgx = Path.Combine(project.JobPath, specificationGroup.EdgeBandFileName); string hardwareHwrx = Path.Combine(project.JobPath, specificationGroup.HardwareFileName); string doorstyleDsvx = Path.Combine(project.JobPath, specificationGroup.DoorWizardFileName); PromptsViewModel viewmodel = new PromptsViewModel(productCutx, globalGvfx, cutPartsCtpx, edgeEdgx, hardwareHwrx, doorstyleDsvx, product.Tab.Name, product.Tab.Photo, product.Tab.VarX, product.Tab.VarZ, product.Tab.VarY); PromptWindow prompt = new PromptWindow(); prompt.ViewModel = viewmodel; prompt.ShowDialog(); return(viewmodel.BookSet); }