public void MapBOToModel()
        {
            var             mapper = new BOLSelfReferenceMapper();
            BOSelfReference bo     = new BOSelfReference();

            bo.SetProperties(1, 1, 1);
            ApiSelfReferenceResponseModel response = mapper.MapBOToModel(bo);

            response.Id.Should().Be(1);
            response.SelfReferenceId.Should().Be(1);
            response.SelfReferenceId2.Should().Be(1);
        }
        public void MapEFToBO()
        {
            var           mapper = new DALSelfReferenceMapper();
            SelfReference entity = new SelfReference();

            entity.SetProperties(1, 1, 1);

            BOSelfReference response = mapper.MapEFToBO(entity);

            response.Id.Should().Be(1);
            response.SelfReferenceId.Should().Be(1);
            response.SelfReferenceId2.Should().Be(1);
        }
        public void MapBOToEF()
        {
            var mapper = new DALSelfReferenceMapper();
            var bo     = new BOSelfReference();

            bo.SetProperties(1, 1, 1);

            SelfReference response = mapper.MapBOToEF(bo);

            response.Id.Should().Be(1);
            response.SelfReferenceId.Should().Be(1);
            response.SelfReferenceId2.Should().Be(1);
        }
        public void MapBOToModelList()
        {
            var             mapper = new BOLSelfReferenceMapper();
            BOSelfReference bo     = new BOSelfReference();

            bo.SetProperties(1, 1, 1);
            List <ApiSelfReferenceResponseModel> response = mapper.MapBOToModel(new List <BOSelfReference>()
            {
                { bo }
            });

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