public void MapModelToBO()
        {
            var mapper = new BOLMessageMapper();
            ApiMessageRequestModel model = new ApiMessageRequestModel();

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

            response.Content.Should().Be("A");
            response.SenderUserId.Should().Be(1);
        }
        public void MapBOToModel()
        {
            var       mapper = new BOLMessageMapper();
            BOMessage bo     = new BOMessage();

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

            response.Content.Should().Be("A");
            response.MessageId.Should().Be(1);
            response.SenderUserId.Should().Be(1);
        }
        public void MapBOToModelList()
        {
            var       mapper = new BOLMessageMapper();
            BOMessage bo     = new BOMessage();

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

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