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]; } }
Dashboard
Start Trial
Sign In
Home
Product
Features
Use Cases
Customers
ROI Calculator
Integrations
Assessments
Tests
Questions
Pricing
Resources
Book: Evidence-Based Hiring
Blog
Support
Contact Us
Legal
For Jobseekers
© TestDome, 2024.