Skip to content

Instantly share code, notes, and snippets.

@maniserowicz
Created December 13, 2012 05:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniserowicz/4274297 to your computer and use it in GitHub Desktop.
Save maniserowicz/4274297 to your computer and use it in GitHub Desktop.
public interface ICurrentTimeProvider
{
DateTime GetCurrentTime();
}
public class CurrentTimeProvider : ICurrentTimeProvider
{
public DateTime GetCurrentTime()
{
return DateTime.UtcNow;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment