-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDataLayer.cs
37 lines (35 loc) · 1.42 KB
/
DataLayer.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
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
namespace EmailSenderProgram
{
class DataLayer
{
/// <summary>
/// Mockup method for all customers
/// </summary>
public static List<Customer> ListCustomers()
{
return new List<Customer>()
{
new Customer(){Email = "jonnyfrez@hotmail.com", CreatedDateTime = DateTime.Now.AddHours(-7)},
new Customer(){Email = "mail2@mail.com", CreatedDateTime = DateTime.Now.AddHours(-1)},
new Customer(){Email = "mail3@mail.com", CreatedDateTime = DateTime.Now.AddMonths(-6)},
new Customer(){Email = "mail4@mail.com", CreatedDateTime = DateTime.Now.AddMonths(-1)},
new Customer(){Email = "mail5@mail.com", CreatedDateTime = DateTime.Now.AddMonths(-2)},
new Customer(){Email = "mail6@mail.com", CreatedDateTime = DateTime.Now.AddDays(-5)}
};
}
/// <summary>
/// Mockup method for listing all orders
/// </summary>
public static List<Order> ListOrders()
{
return new List<Order>()
{
new Order(){CustomerEmail = "mail3@mail.com", OrderDatetime = DateTime.Now.AddMonths(-6)},
new Order(){CustomerEmail = "jonnyfrez@hotmail.com", OrderDatetime = DateTime.Now.AddMonths(-2)},
new Order(){CustomerEmail = "mail6@mail.com", OrderDatetime = DateTime.Now.AddDays(-2)}
};
}
}
}