public void CreateParcel(double weight, double value) { #region Prepare Data var parcel = new Parcel { Recipient = SampleData.Recipient, Sender = SampleData.Sender, Weight = weight, Value = value }; #endregion #region Action var deliveryResult = deliveryEngine.Send(parcel); #endregion #region Check Assert.True(deliveryResult.IsSucceed); #endregion }
public void LowWeight_LowPrice_HandelByEmail(double weight, double value) { #region Prepare Data var parcel = new Parcel { Recipient = SampleData.Recipient, Sender = SampleData.Sender, Value = value, Weight = weight }; #endregion #region Action var deliveryResult = _deliveryEngine.Send(parcel); #endregion #region Result Assert.NotNull(deliveryResult); Assert.True(deliveryResult.IsSucceed); Assert.IsType <EmailDepartment>(deliveryResult.ExecutedDepartmentList.First()); #endregion }