コード例 #1
0
        public void Map_WhenCallsWithAddedBindingParameters_ShouldMapCorrectly()
        {
            //arrange
            var expected = InMemoryRepository.GetOrder();
            var source   = InMemoryRepository.GetOrderVM();

            _mapper.Bind <ICollection <int>, List <int> >();
            //act
            var actual = _mapper.Map <OrderVM, Order>(source);

            //assert
            Assert.Equal(expected.ToJson(), actual.ToJson());
        }