public void SetUp() { var basicHttpBinding = new BasicHttpBinding(); basicHttpBinding.SendTimeout = TimeSpan.FromMinutes(5); var endpointAddress = new EndpointAddress("http://localhost:8089/HandlingReportServiceFacade/"); this.handlingReportServiceClient = new HandlingReportServiceClient(basicHttpBinding, endpointAddress); this.messageBoxCreator = new MessageBoxCreator(); this.handlingReportViewModel = new HandlingReportViewModel( this.handlingReportServiceClient, this.messageBoxCreator); }
public void SetUp() { var basicHttpBinding = new BasicHttpBinding(); basicHttpBinding.SendTimeout = TimeSpan.FromMinutes(5); var endpointAddress = new EndpointAddress("http://localhost:8089/HandlingReportServiceFacade/"); this.handlingReportServiceClient = new HandlingReportServiceClient(basicHttpBinding, endpointAddress); this.messageBoxCreator = new MessageBoxCreator(); this.handlingReportViewModel = new HandlingReportViewModel( this.handlingReportServiceClient, this.messageBoxCreator); }
/// <summary> /// Initializes a new instance of the <see cref="HandlingReportViewModel"/> class. /// </summary> /// <param name="handlingReportServiceClient"> /// The handling Report Service Client. /// </param> /// <param name="messageBoxCreator"> /// The message Box Creator. /// </param> public HandlingReportViewModel( IHandlingReportService handlingReportServiceClient, IMessageBoxCreator messageBoxCreator) { this.handlingReportServiceClient = handlingReportServiceClient; this.messageBoxCreator = messageBoxCreator; // initialise validator for this view model this.handlingReportViewModelValidator = new HandlingReportViewModelValidator(this); this.RegisterReportCommand = new DelegateCommand <object>(this.Register, this.CanRegister); HandlingReportCommands.RegisterHandlingReportCommand.RegisterCommand(this.RegisterReportCommand); }
/// <summary> /// Initializes a new instance of the <see cref="HandlingReportViewModel"/> class. /// </summary> /// <param name="handlingReportServiceClient"> /// The handling Report Service Client. /// </param> /// <param name="messageBoxCreator"> /// The message Box Creator. /// </param> public HandlingReportViewModel( IHandlingReportService handlingReportServiceClient, IMessageBoxCreator messageBoxCreator) { this.handlingReportServiceClient = handlingReportServiceClient; this.messageBoxCreator = messageBoxCreator; // initialise validator for this view model this.handlingReportViewModelValidator = new HandlingReportViewModelValidator(this); this.RegisterReportCommand = new DelegateCommand<object>(this.Register, this.CanRegister); HandlingReportCommands.RegisterHandlingReportCommand.RegisterCommand(this.RegisterReportCommand); }