17 lines
443 B
C#
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;
|
|
}
|
|
}
|