コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }