public void MapModelToEntity()
        {
            var mapper = new DALClaspMapper();
            ApiClaspServerRequestModel model = new ApiClaspServerRequestModel();

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

            response.NextChainId.Should().Be(1);
            response.PreviousChainId.Should().Be(1);
        }
        public void MapEntityToModel()
        {
            var   mapper = new DALClaspMapper();
            Clasp item   = new Clasp();

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

            response.Id.Should().Be(1);
            response.NextChainId.Should().Be(1);
            response.PreviousChainId.Should().Be(1);
        }
        public void MapEntityToModelList()
        {
            var   mapper = new DALClaspMapper();
            Clasp item   = new Clasp();

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

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