Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }