public void ensureSameAsReturnsFalseForDifferentEntityIds() { MaterialPriceTableEntry instance = new MaterialPriceTableEntry(price: Price.valueOf(10), timePeriod: createTimePeriod(), material: createMaterial()); Assert.False(instance.sameAs("bananas")); }
public void ensureSameAsReturnsTrueForEqualEntityIds() { MaterialPriceTableEntry instance = new MaterialPriceTableEntry(price: Price.valueOf(10), timePeriod: createTimePeriod(), material: createMaterial()); Assert.True(instance.sameAs(instance.id())); }