public void As_MapperIsNull_ThrowsArgumentNullException()
        {
            //Arrange
            var map = MapBuilder.Instance.CreateReversiveMap<MainEntity, MainEntityModel>().Map;

            var reversiveTypeMapConfiguration = new ReversiveTypeMapConfiguration<MainEntity, MainEntityModel>(map);

            //Act
            //Assert
            reversiveTypeMapConfiguration.As(null, null);
        }
        public void As_UnMapperIsNull_ThrowsArgumentNullException()
        {
            //Arrange
            var map = MapBuilder.Instance.CreateReversiveMap<MainEntity, MainEntityModel>().Map;
            var reversiveTypeMapConfiguration = new ReversiveTypeMapConfiguration<MainEntity, MainEntityModel>(map);

            //Act
            //Assert
            reversiveTypeMapConfiguration.As(
                delegate(MainEntity source, MainEntityModel dest, TypeMappingContext context)
                {
                }, null);
        }
        public void As_GoodValues_SetsMapperAndReturnsReversiveTypeMap()
        {
            //Arrange
            var map = MapBuilder.Instance.CreateReversiveMap<MainEntity, MainEntityModel>().Map;

            var reversiveTypeMapConfiguration = new ReversiveTypeMapConfiguration<MainEntity, MainEntityModel>(map);

            //Act
            var reversiveTypeMap = reversiveTypeMapConfiguration.As(
                delegate(MainEntity source, MainEntityModel dest, TypeMappingContext context)
                {
                }, delegate(MainEntityModel source, MainEntity dest, TypeMappingContext context)
                {
                });

            //Assert
            Assert.AreEqual<Type>(map.SourceType, reversiveTypeMap.SourceType);
            Assert.AreEqual<Type>(map.DestinationType, reversiveTypeMap.DestinationType);
            Assert.AreEqual<int>(0, reversiveTypeMap.PropertyMaps.Count);
            Assert.IsNotNull(reversiveTypeMap.Mapper);
            Assert.IsNotNull(reversiveTypeMap.UnMapper);
        }