ex-int-04-shipping-cost/ShippingCosts.Test/ShippingCostCalculatorBaseTestBase.cs
github-classroom[bot] 5db225db88
Initial commit
2025-04-29 15:01:53 +00:00

17 lines
443 B
C#

using ShippingCosts.Contracts;
namespace ShippingCosts.Test;
public abstract class ShippingCostCalculatorBaseTestBase
{
protected static IMeasuredBox CreateBox(int width, int height, int depth, double weight)
{
var box = Substitute.For<IMeasuredBox>();
box.Width.Returns(width);
box.Height.Returns(height);
box.Depth.Returns(depth);
box.Weight.Returns(weight);
return box;
}
}