public void GivenBusinessOrder_WhenCreate_ThenMapsAndCreatesCorrectBusinessOrderResponseDto()
        {
            var businessOrder = OrderFactory.CreateBusinessOrder();

            var result = _sut.Create(businessOrder);

            MappingAssertHelper.Assert(businessOrder, result);
        }
예제 #2
0
        public void GivenBusinessOrder_WhenAutoMapperMap_ThenMapsAndReturnsCorrectBusinessOrderResponseDto()
        {
            var businessOrder = OrderFactory.CreateBusinessOrder();

            var result = _sut.Map <BusinessOrderResponseDto>(businessOrder);

            MappingAssertHelper.Assert(businessOrder, result);
        }
예제 #3
0
        public void GivenBusinessOrder_WhenExplicitCast_ThenReturnsCorrectlyMappedBusinessOrderResponseDto()
        {
            var businessOrder = OrderFactory.CreateBusinessOrder();

            var result = (BusinessOrderResponseDto)businessOrder;

            MappingAssertHelper.Assert(businessOrder, result);
        }