public void MapEFToBOList()
        {
            var            mapper = new DALBillOfMaterialMapper();
            BillOfMaterial entity = new BillOfMaterial();

            entity.SetProperties(1, 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A");

            List <BOBillOfMaterial> response = mapper.MapEFToBO(new List <BillOfMaterial>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
        public void MapEFToBO()
        {
            var            mapper = new DALBillOfMaterialMapper();
            BillOfMaterial entity = new BillOfMaterial();

            entity.SetProperties(1, 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1, 1, DateTime.Parse("1/1/1987 12:00:00 AM"), "A");

            BOBillOfMaterial response = mapper.MapEFToBO(entity);

            response.BillOfMaterialsID.Should().Be(1);
            response.BOMLevel.Should().Be(1);
            response.ComponentID.Should().Be(1);
            response.EndDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PerAssemblyQty.Should().Be(1);
            response.ProductAssemblyID.Should().Be(1);
            response.StartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.UnitMeasureCode.Should().Be("A");
        }