-
Notifications
You must be signed in to change notification settings - Fork 0
/
54-TestDome-Interface.cs
53 lines (46 loc) · 1.29 KB
/
54-TestDome-Interface.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using System.Threading.Tasks;
//namespace HackerRank
//{
// public class AlertService
// {
// private IAlertDAO _alert;
// public AlertService(IAlertDAO alert)
// {
// _alert = alert;
// }
// //private readonly AlertDAO storage = new AlertDAO();
// public Guid RaiseAlert()
// {
// return _alert.AddAlert(DateTime.Now);
// //return this.storage.AddAlert(DateTime.Now);
// }
// public DateTime GetAlertTime(Guid id)
// {
// return _alert.GetAlert(id);
// //return this.storage.GetAlert(id);
// }
// }
// public class AlertDAO : IAlertDAO
// {
// private readonly Dictionary<Guid, DateTime> alerts = new Dictionary<Guid, DateTime>();
// public Guid AddAlert(DateTime time)
// {
// Guid id = Guid.NewGuid();
// this.alerts.Add(id, time);
// return id;
// }
// public DateTime GetAlert(Guid id)
// {
// return this.alerts[id];
// }
// }
// public interface IAlertDAO
// {
// Guid AddAlert(DateTime time);
// DateTime GetAlert(Guid id);
// }
//}