loading
open in
main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;

class MainClass {
  public static void Main (string[] args) {
    
    IOrm orm = null;
    
    IDynamodbClient dynamodbClient = null;
    
    IProductRepository productRepo = new ProductDatabaseRepository(orm);
    
    ICustomerRepository customerRepo = new CustomerDatabaseRepository(orm);
    
    Product p1 = productRepo.GetById(3);
    
    Customer c1 = customerRepo.GetById(49);
    
    productRepo = new ProductDynamodbRepository(dynamodbClient);
    
    customerRepo = new CustomerDynamodbRepository(dynamodbClient);
    
    p1 = productRepo.GetById(3);
    
    c1 = customerRepo.GetById(49);
    
    Console.WriteLine ("Hello World");
  }
}
Mono C# compiler version 4.0.4.0