public void MapEFToBOList()
        {
            var mapper = new DALTransactionHistoryMapper();
            TransactionHistory entity = new TransactionHistory();

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

            List <BOTransactionHistory> response = mapper.MapEFToBO(new List <TransactionHistory>()
            {
                entity
            });

            response.Count.Should().Be(1);
        }
        public virtual TransactionHistory MapBOToEF(
            BOTransactionHistory bo)
        {
            TransactionHistory efTransactionHistory = new TransactionHistory();

            efTransactionHistory.SetProperties(
                bo.ActualCost,
                bo.ModifiedDate,
                bo.ProductID,
                bo.Quantity,
                bo.ReferenceOrderID,
                bo.ReferenceOrderLineID,
                bo.TransactionDate,
                bo.TransactionID,
                bo.TransactionType);
            return(efTransactionHistory);
        }
        public void MapEFToBO()
        {
            var mapper = new DALTransactionHistoryMapper();
            TransactionHistory entity = new TransactionHistory();

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

            BOTransactionHistory response = mapper.MapEFToBO(entity);

            response.ActualCost.Should().Be(1m);
            response.ModifiedDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.ProductID.Should().Be(1);
            response.Quantity.Should().Be(1);
            response.ReferenceOrderID.Should().Be(1);
            response.ReferenceOrderLineID.Should().Be(1);
            response.TransactionDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
            response.TransactionID.Should().Be(1);
            response.TransactionType.Should().Be("A");
        }