Beispiel #1
0
        public void Pricing()
        {
            _logger.Log("Starting pricing.");
            _logger.Log("Loading details.");

            string detailsJson = _detailsSource.GetDetailsFromSource();

            var details = _detailsSerializer.GetDetailsFromJsonString(detailsJson);

            var pricing = _detailsPricingFactory.Create(details, Context);

            WashingCost = pricing.Pricing(details);

            _logger.Log("Pricing completed.");
        }
Beispiel #2
0
 public Details GetDetailsFromJsonString(string detailsJson)
 {
     return _detailsSerializer.GetDetailsFromJsonString(detailsJson);
 }