public void MapEFToBOList()
        {
            var mapper = new DALPurchaseOrderHeaderMapper();
            PurchaseOrderHeader entity = new PurchaseOrderHeader();

            entity.SetProperties(1, 1m, 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"), 1, 1, 1m, 1m, 1m, 1);

            List <BOPurchaseOrderHeader> response = mapper.MapEFToBO(new List <PurchaseOrderHeader>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
        public virtual PurchaseOrderHeader MapBOToEF(
            BOPurchaseOrderHeader bo)
        {
            PurchaseOrderHeader efPurchaseOrderHeader = new PurchaseOrderHeader();

            efPurchaseOrderHeader.SetProperties(
                bo.EmployeeID,
                bo.Freight,
                bo.ModifiedDate,
                bo.OrderDate,
                bo.PurchaseOrderID,
                bo.RevisionNumber,
                bo.ShipDate,
                bo.ShipMethodID,
                bo.Status,
                bo.SubTotal,
                bo.TaxAmt,
                bo.TotalDue,
                bo.VendorID);
            return(efPurchaseOrderHeader);
        }
        public void MapEFToBO()
        {
            var mapper = new DALPurchaseOrderHeaderMapper();
            PurchaseOrderHeader entity = new PurchaseOrderHeader();

            entity.SetProperties(1, 1m, 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"), 1, 1, 1m, 1m, 1m, 1);

            BOPurchaseOrderHeader response = mapper.MapEFToBO(entity);

            response.EmployeeID.Should().Be(1);
            response.Freight.Should().Be(1m);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.OrderDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.PurchaseOrderID.Should().Be(1);
            response.RevisionNumber.Should().Be(1);
            response.ShipDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.ShipMethodID.Should().Be(1);
            response.Status.Should().Be(1);
            response.SubTotal.Should().Be(1m);
            response.TaxAmt.Should().Be(1m);
            response.TotalDue.Should().Be(1m);
            response.VendorID.Should().Be(1);
        }