public void Verify_MapToEntityExtension_CallsMapToEntity()
        {
            // Arrange
            var mockMapper = new Mock <PromoMapper>();

            mockMapper.Setup(x => x.MapToEntity(It.IsAny <IPromoModel>(), It.IsAny <int>()));
            var mockModel = PromosMockingSetup.DoMockingSetupForPromoModel(1);

            PromoMapperExtensions.OverrideMapper(mockMapper.Object);
            // Act
            mockModel.Object.MapToEntity();
            // Assert
            mockMapper.Verify(x => x.MapToEntity(It.IsAny <IPromoModel>(), It.IsAny <int>()), Times.Once);
        }
        public void Verify_AreEqualExtension_CallsAreEqual()
        {
            // Arrange
            var mockMapper = new Mock <PromoMapper>();

            mockMapper.Setup(x => x.AreEqual(It.IsAny <IPromoModel>(), It.IsAny <IPromo>()));
            PromoMapperExtensions.OverrideMapper(mockMapper.Object);
            var mockModel  = PromosMockingSetup.DoMockingSetupForPromoModel(1);
            var mockEntity = PromosMockingSetup.DoMockingSetupForPromo(1);

            // Act
            mockModel.Object.AreEqual(mockEntity.Object);
            // Assert
            mockMapper.Verify(x => x.AreEqual(It.IsAny <IPromoModel>(), It.IsAny <IPromo>()), Times.Once);
        }