Original code:
using System.Collections.Generic; using System; public class AlertService { private readonly AlertDAO storage = new AlertDAO(); public Guid RaiseAlert() { return this.storage.AddAlert(DateTime.Now); } public DateTime GetAlertTime(Guid id) { return this.storage.GetAlert(id); } } public class AlertDAO { private readonly Dictionary
alerts = new Dictionary
(); 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]; } }