public void CarNumbersObjectToCarNumberDataEntitiesMapper_WhenInvokingMapMethodWithPopulatedEntity_ExpectPopulatedList()
        {
            var factory = new IntegerIdentityFactory <CarNumberDataEntity>(() => new CarNumberDataEntity()); // TODO: Mock it
            var mapper  = new Application.Maps.Manual.CarNumbersObjectToCarNumberDataEntitiesMapper(factory);

            var carNumbersObjectFactory = new CarNumbersObjectFactory(() => new CarNumbersObject()); // TODO: Mock it

            const int carNumbersObjectId = 1;
            var       carNumbersObject   = carNumbersObjectFactory.Create(carNumbersObjectId);

            carNumbersObject.CarNumberDriver1 = 3;
            carNumbersObject.CarNumberDriver2 = 4;

            var sut = mapper.Map(carNumbersObject).ToList();

            sut.Should().NotBeNull();
            sut.Count.Should().Be(2);

            var carNumberDataEntity1 = sut.Single(x => x.PositionId == 0);

            carNumberDataEntity1.Should().NotBeNull();
            carNumberDataEntity1.Id.Should().Be(2);
            carNumberDataEntity1.ValueA.Should().Be(carNumbersObject.CarNumberDriver1);
            carNumberDataEntity1.ValueB.Should().Be(carNumbersObject.CarNumberDriver1);

            var carNumberDataEntity2 = sut.Single(x => x.PositionId == 1);

            carNumberDataEntity2.Should().NotBeNull();
            carNumberDataEntity2.Id.Should().Be(3);
            carNumberDataEntity2.ValueA.Should().Be(carNumbersObject.CarNumberDriver2);
            carNumberDataEntity2.ValueB.Should().Be(carNumbersObject.CarNumberDriver2);
        }
        public void CarNumbersObjectToCarNumberDataEntitiesMapper_WhenInvokingMapMethodWithNullParameter_ExpectException()
        {
            var factory = new IntegerIdentityFactory <CarNumberDataEntity>(() => new CarNumberDataEntity()); // TODO: Mock it
            var mapper  = new Application.Maps.Manual.CarNumbersObjectToCarNumberDataEntitiesMapper(factory);

            var action = new Action(() =>
            {
                var _ = mapper.Map(null);
            });

            action.Should().Throw <ArgumentNullException>();
        }