Exemple #1
0
        public void Equals_ProducerSubmissionsWithSameCeaseToExistDates_ReturnsTrue()
        {
            ProducerSubmission producer1 = ProducerBuilder.WithCeaseToExist(new DateTime(2016, 1, 1));
            ProducerSubmission producer2 = ProducerBuilder.WithCeaseToExist(new DateTime(2016, 1, 1));

            Assert.Equal(producer1, producer2);
        }
Exemple #2
0
        public void Equals_ProducerSubmissionWithNullCeaseToExistDateAndProducerSubmissionWithCeaseToExistDate_ReturnsFalse()
        {
            ProducerSubmission producer1 = ProducerBuilder.WithCeaseToExist(null);
            ProducerSubmission producer2 = ProducerBuilder.WithCeaseToExist(A.Dummy <DateTime>());

            Assert.NotEqual(producer1, producer2);
        }
Exemple #3
0
        public void Equals_ProducerSubmissionsWithDifferentCeaseToExistDates_ReturnsFalse()
        {
            ProducerSubmission producer1 = ProducerBuilder.WithCeaseToExist(new DateTime(2016, 1, 1));
            ProducerSubmission producer2 = ProducerBuilder.WithCeaseToExist(new DateTime(2016, 1, 2));

            Assert.NotEqual(producer1, producer2);
        }
Exemple #4
0
        public void Equals_ProducerSubmissionsWithNullCeaseToExistDates_ReturnsTrue()
        {
            ProducerSubmission producer1 = ProducerBuilder.WithCeaseToExist(null);
            ProducerSubmission producer2 = ProducerBuilder.WithCeaseToExist(null);

            Assert.Equal(producer1, producer2);
        }