public void MapModelToEntity()
        {
            var mapper = new DALLinkStatusMapper();
            ApiLinkStatusServerRequestModel model = new ApiLinkStatusServerRequestModel();

            model.SetProperties("A");
            LinkStatus response = mapper.MapModelToEntity(1, model);

            response.Name.Should().Be("A");
        }
        public void MapEntityToModel()
        {
            var        mapper = new DALLinkStatusMapper();
            LinkStatus item   = new LinkStatus();

            item.SetProperties(1, "A");
            ApiLinkStatusServerResponseModel response = mapper.MapEntityToModel(item);

            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
        }
        public void MapEntityToModelList()
        {
            var        mapper = new DALLinkStatusMapper();
            LinkStatus item   = new LinkStatus();

            item.SetProperties(1, "A");
            List <ApiLinkStatusServerResponseModel> response = mapper.MapEntityToModel(new List <LinkStatus>()
            {
                { item }
            });

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