public void MapModelToBO()
        {
            var mapper = new BOLLinkTypesMapper();
            ApiLinkTypesRequestModel model = new ApiLinkTypesRequestModel();

            model.SetProperties("A");
            BOLinkTypes response = mapper.MapModelToBO(1, model);

            response.Type.Should().Be("A");
        }
        public void MapBOToModel()
        {
            var         mapper = new BOLLinkTypesMapper();
            BOLinkTypes bo     = new BOLinkTypes();

            bo.SetProperties(1, "A");
            ApiLinkTypesResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.Type.Should().Be("A");
        }
        public void MapEFToBO()
        {
            var       mapper = new DALLinkTypesMapper();
            LinkTypes entity = new LinkTypes();

            entity.SetProperties(1, "A");

            BOLinkTypes response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.Type.Should().Be("A");
        }
        public void MapBOToEF()
        {
            var mapper = new DALLinkTypesMapper();
            var bo     = new BOLinkTypes();

            bo.SetProperties(1, "A");

            LinkTypes response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.Type.Should().Be("A");
        }
        public void MapBOToModelList()
        {
            var         mapper = new BOLLinkTypesMapper();
            BOLinkTypes bo     = new BOLinkTypes();

            bo.SetProperties(1, "A");
            List <ApiLinkTypesResponseModel> response = mapper.MapBOToModel(new List <BOLinkTypes>()
            {
                { bo }
            });

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