public void ensureSameAsReturnsTrueForEqualEntityIds()
        {
            MaterialPriceTableEntry instance = new MaterialPriceTableEntry(price: Price.valueOf(10),
                                                                           timePeriod: createTimePeriod(), material: createMaterial());

            Assert.True(instance.sameAs(instance.id()));
        }
        public void ensureEqualEntriesHaveSameIds()
        {
            MaterialPriceTableEntry instance = new MaterialPriceTableEntry(price: Price.valueOf(10),
                                                                           timePeriod: createTimePeriod(), material: createMaterial());
            MaterialPriceTableEntry other = new MaterialPriceTableEntry(price: Price.valueOf(10),
                                                                        timePeriod: createTimePeriod(), material: createMaterial());

            Assert.Equal(instance.id(), other.id());
        }
        public void ensureEntriesWithDifferentMaterialsHaveDifferentIds()
        {
            MaterialPriceTableEntry instance = new MaterialPriceTableEntry(price: Price.valueOf(10),
                                                                           timePeriod: createTimePeriod(), material: createMaterial());
            MaterialPriceTableEntry other = new MaterialPriceTableEntry(price: Price.valueOf(10),
                                                                        timePeriod: createTimePeriod(), material: createOtherMaterial());

            Assert.NotEqual(instance.id(), other.id());
        }