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);
        }
Example #3
0
 public void SetUp()
 {
     this.handlingReportServiceClientMock = new Mock <IHandlingReportService>();
     this.messageBoxCreator       = new Mock <IMessageBoxCreator>();
     this.handlingReportViewModel = new HandlingReportViewModel(this.handlingReportServiceClientMock.Object, this.messageBoxCreator.Object);
 }
 public void SetUp()
 {
     this.handlingReportServiceClientMock = new Mock<IHandlingReportService>();
     this.messageBoxCreator = new Mock<IMessageBoxCreator>();
     this.handlingReportViewModel = new HandlingReportViewModel(this.handlingReportServiceClientMock.Object, this.messageBoxCreator.Object);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HandlingReportViewModelValidator"/> class.
 /// </summary>
 /// <param name="handlingReportViewModel">
 /// The handling report view model.
 /// </param>
 public HandlingReportViewModelValidator(HandlingReportViewModel handlingReportViewModel)
 {
     this.handlingReportViewModel = handlingReportViewModel;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HandlingReportViewModelValidator"/> class.
 /// </summary>
 /// <param name="handlingReportViewModel">
 /// The handling report view model.
 /// </param>
 public HandlingReportViewModelValidator(HandlingReportViewModel handlingReportViewModel)
 {
     this.handlingReportViewModel = handlingReportViewModel;
 }