Example #1
0
        public void MapModelToEntity()
        {
            var mapper = new DALOtherTransportMapper();
            ApiOtherTransportServerRequestModel model = new ApiOtherTransportServerRequestModel();

            model.SetProperties(1, 1);
            OtherTransport response = mapper.MapModelToEntity(1, model);

            response.HandlerId.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Example #2
0
        public void MapEntityToModel()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport item   = new OtherTransport();

            item.SetProperties(1, 1, 1);
            ApiOtherTransportServerResponseModel response = mapper.MapEntityToModel(item);

            response.HandlerId.Should().Be(1);
            response.Id.Should().Be(1);
            response.PipelineStepId.Should().Be(1);
        }
Example #3
0
        public void MapEntityToModelList()
        {
            var            mapper = new DALOtherTransportMapper();
            OtherTransport item   = new OtherTransport();

            item.SetProperties(1, 1, 1);
            List <ApiOtherTransportServerResponseModel> response = mapper.MapEntityToModel(new List <OtherTransport>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }