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

            var result = _sut.Create(businessOrder);

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

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

            MappingAssertHelper.Assert(businessOrder, result);
        }
        public void GivenBusinessOrder_WhenExplicitCast_ThenReturnsCorrectlyMappedBusinessOrderResponseDto()
        {
            var businessOrder = OrderFactory.CreateBusinessOrder();

            var result = (BusinessOrderResponseDto)businessOrder;

            MappingAssertHelper.Assert(businessOrder, result);
        }