public void MapEFToBO()
        {
            var           mapper = new DALKeyAllocationMapper();
            KeyAllocation entity = new KeyAllocation();

            entity.SetProperties(1, "A");

            BOKeyAllocation response = mapper.MapEFToBO(entity);

            response.Allocated.Should().Be(1);
            response.CollectionName.Should().Be("A");
        }
        public void MapBOToEF()
        {
            var mapper = new DALKeyAllocationMapper();
            var bo     = new BOKeyAllocation();

            bo.SetProperties("A", 1);

            KeyAllocation response = mapper.MapBOToEF(bo);

            response.Allocated.Should().Be(1);
            response.CollectionName.Should().Be("A");
        }
        public void MapEFToBOList()
        {
            var           mapper = new DALKeyAllocationMapper();
            KeyAllocation entity = new KeyAllocation();

            entity.SetProperties(1, "A");

            List <BOKeyAllocation> response = mapper.MapEFToBO(new List <KeyAllocation>()
            {
                entity
            });

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