public void MapEntityToModelList()
        {
            var   mapper = new DALChainMapper();
            Chain item   = new Chain();

            item.SetProperties(1, 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), "A", 1);
            List <ApiChainServerResponseModel> response = mapper.MapEntityToModel(new List <Chain>()
            {
                { item }
            });

            response.Count.Should().Be(1);
        }
        public void MapModelToEntity()
        {
            var mapper = new DALChainMapper();
            ApiChainServerRequestModel model = new ApiChainServerRequestModel();

            model.SetProperties(1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), "A", 1);
            Chain response = mapper.MapModelToEntity(1, model);

            response.ChainStatusId.Should().Be(1);
            response.ExternalId.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));
            response.Name.Should().Be("A");
            response.TeamId.Should().Be(1);
        }
        public void MapEntityToModel()
        {
            var   mapper = new DALChainMapper();
            Chain item   = new Chain();

            item.SetProperties(1, 1, Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"), "A", 1);
            ApiChainServerResponseModel response = mapper.MapEntityToModel(item);

            response.ChainStatusId.Should().Be(1);
            response.ExternalId.Should().Be(Guid.Parse("8420cdcf-d595-ef65-66e7-dff9f98764da"));
            response.Id.Should().Be(1);
            response.Name.Should().Be("A");
            response.TeamId.Should().Be(1);
        }