public void MapBOToModelList()
        {
            var mapper = new BOLProductCostHistoryMapper();
            BOProductCostHistory bo = new BOProductCostHistory();

            bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, DateTime.Parse("1/1/1987 12:00:00 AM"));
            List <ApiProductCostHistoryResponseModel> response = mapper.MapBOToModel(new List <BOProductCostHistory>()
            {
                { bo }
            });

            response.Count.Should().Be(1);
        }
        public void MapModelToBO()
        {
            var mapper = new BOLProductCostHistoryMapper();
            ApiProductCostHistoryRequestModel model = new ApiProductCostHistoryRequestModel();

            model.SetProperties(DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, DateTime.Parse("1/1/1987 12:00:00 AM"));
            BOProductCostHistory response = mapper.MapModelToBO(1, model);

            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.StandardCost.Should().Be(1m);
            response.StartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }
        public void MapBOToModel()
        {
            var mapper = new BOLProductCostHistoryMapper();
            BOProductCostHistory bo = new BOProductCostHistory();

            bo.SetProperties(1, DateTime.Parse("1/1/1987 12:00:00 AM"), DateTime.Parse("1/1/1987 12:00:00 AM"), 1m, DateTime.Parse("1/1/1987 12:00:00 AM"));
            ApiProductCostHistoryResponseModel response = mapper.MapBOToModel(bo);

            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.ProductID.Should().Be(1);
            response.StandardCost.Should().Be(1m);
            response.StartDate.Should().Be(DateTime.Parse("1/1/1987 12:00:00 AM"));
        }