public void CreateJobTest() { _carWashDomain.Stub(x => x.CreateJob(express)).Return(true); bool actualResult = _applicationService.CreateJob(signature); Assert.AreEqual(actualResult, true); }
private void CreateJob(string isCreate) { if (isCreate == "True") { CarWashClientModel model = new CarWashClientModel() { IsPreSoak = IsPreSoak, IsSoftWater = IsSoftWater, IsDryAgent = IsDryAgent, IsTyreShine = IsTyreShine, IsRainShield = IsRainShield, WashMode = mode, TotCost = TotalCost, }; if (_applicationService.CreateJob(model)) { MessageBox.Show("Your car wash job created successfully", "Alert", MessageBoxButton.OK, MessageBoxImage.Information); } else { MessageBox.Show("Your car wash job hasn't created try again..", "Alert", MessageBoxButton.OK, MessageBoxImage.Information); } } else { var result = MessageBox.Show("Are you sure want to cancel!", "Alert", MessageBoxButton.YesNo, MessageBoxImage.Warning); if (MessageBoxResult.Yes == result) { RestValues(); } } }