public void ensureSameAsReturnsFalseForDifferentEntities() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); FinishPriceTableEntry other = new FinishPriceTableEntry(materialEID: "hello", price: Price.valueOf(10), timePeriod: createOtherTimePeriod(), finish: createFinish()); Assert.False(instance.sameAs(other.eId)); }
public void ensureSameAsReturnsTrueForEqualEntities() { FinishPriceTableEntry instance = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); FinishPriceTableEntry other = new FinishPriceTableEntry(materialEID: "hi", price: Price.valueOf(10), timePeriod: createTimePeriod(), finish: createFinish()); Assert.True(instance.sameAs(other.eId)); }