Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 16:34:04 (12 years ago)
Author:
spimming
Message:

#1888:

  • Added new BillingService methods
  • Disabled proxy generation and lazy loading!
  • Extended see method with additional test data
  • Added properties to order and invoice model
  • initial commit of BillingEngine module
Location:
branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business/BillingService.cs

    r9602 r9619  
    2929    }
    3030
     31    public IList<Product> GetProductByName(string productName) {
     32      //TODO: Authentication
     33      //TODO: Enable Transaction
     34      return BillingDao.FindProdcutBy(prod => prod.Name == productName).ToList();
     35    }
     36
    3137    #endregion
    3238
     
    4248      //TODO: Authentication
    4349      //TODO: Enable Transaction
    44       return BillingDao.FindOrderBy(order => order.State == state).ToList();
     50      return BillingDao.FindOrderBy(order => order.StateValue == (int)state).ToList();
    4551    }
    4652
     
    5056      User user = GetUser(userName);
    5157      return BillingDao.FindOrderBy(order => order.User == user).ToList();
     58    }
     59
     60    public void UpdateOrder(Order order) {
     61      throw new System.NotImplementedException();
    5262    }
    5363
     
    7989    }
    8090
     91    public IList<UsageRecord> GetUsageRecords(string username, System.DateTime from, System.DateTime to) {
     92      throw new System.NotImplementedException();
     93    }
     94
    8195    #endregion
    8296
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/Business/MockupBillingService.cs

    r9602 r9619  
    118118      return null;
    119119    }
     120
     121    #region IOptimizationBilling Members
     122
     123
     124    public IList<Model.Product> GetProductByName(string productName) {
     125      throw new NotImplementedException();
     126    }
     127
     128    public void UpdateOrder(Model.Order order) {
     129      throw new NotImplementedException();
     130    }
     131
     132    public IList<Model.UsageRecord> GetUsageRecords(string username, DateTime from, DateTime to) {
     133      throw new NotImplementedException();
     134    }
     135
     136    #endregion
    120137  }
    121138}
Note: See TracChangeset for help on using the changeset viewer.