Пример #1
0
        public void EqualsShouldReturnFalseForInstancesWithSamePersonButDifferentJourneyIds()
        {
            var a = new LiftId(new Id(0), new Id(2));
            var b = new LiftId(new Id(1), new Id(2));

            var result = a.Equals(b);

            Assert.AreEqual(false, result);
        }
Пример #2
0
        public void EqualsShouldReturnFalseForInstancesWhereSecondIsNotLiftId()
        {
            var a = new LiftId(new Id(0), new Id(1));
            var b = new Id(0);

            var result = a.Equals(b);

            Assert.AreEqual(false, result);
        }
Пример #3
0
        public void EqualsShouldReturnTrueForInstancesWithSameJourneyAndPersonIds()
        {
            var a = new LiftId(new Id(0), new Id(1));
            var b = new LiftId(new Id(0), new Id(1));

            var result = a.Equals(b);

            Assert.AreEqual(true, result);
        }