Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 16:34:04 (11 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Optimization.Billing/DataAccess/BillingContext.cs

    r9602 r9619  
    2828    public BillingContext(string connectionString)
    2929      : base(connectionString) {
    30 
     30      this.Configuration.LazyLoadingEnabled = false;
     31      this.Configuration.ProxyCreationEnabled = false;
    3132    }
    3233
     
    9697      protected override void Seed(BillingContext context) {
    9798        Product p1 = new Product() {
    98           Name = "Optimization-as-a-Service - Experiment execution",
     99          Name = "OaaS BAsic Service Charge",
    99100          Description = "Create and run your experiments within HeuristicLab Hive",
    100           ProductId = 1,
    101           Price = 10.0,
     101          Price = 20.0,
    102102          ProductType = "Optimization Service"
    103103        };
     104
     105        Product p2 = new Product() {
     106          Name = "Oaas Usage Charges",
     107          Description = "Charges for OaaS based on usage data",
     108          Price = 0.0,
     109          ProductType = "Optimization Service"
     110        };
     111
     112        Product p3 = new Product() {
     113          Name = "Oaas Support Package",
     114          Description = "Charges for OaaS based on usage data",
     115          Price = 50.0,
     116          ProductType = "Optimization Service"
     117        };
     118
    104119        p1 = context.Products.Add(p1);
     120        p2 = context.Products.Add(p2);
     121        p3 = context.Products.Add(p3);
    105122
    106123        User u1 = new Model.User() { Name = "spimming" };
Note: See TracChangeset for help on using the changeset viewer.