Click here to Skip to main content
15,897,226 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: When to use dependency injection? Pin
Dominic Burford11-Feb-15 23:09
professionalDominic Burford11-Feb-15 23:09 
GeneralRe: When to use dependency injection? Pin
jschell13-Feb-15 12:34
jschell13-Feb-15 12:34 
GeneralRe: When to use dependency injection? Pin
jschell13-Feb-15 12:29
jschell13-Feb-15 12:29 
AnswerRe: When to use dependency injection? Pin
Rob Philpott11-Feb-15 23:06
Rob Philpott11-Feb-15 23:06 
AnswerRe: When to use dependency injection? Pin
Mark_Wallace11-Feb-15 23:27
Mark_Wallace11-Feb-15 23:27 
AnswerRe: When to use dependency injection? PinPopular
Chris Maunder12-Feb-15 3:37
cofounderChris Maunder12-Feb-15 3:37 
AnswerRe: When to use dependency injection? Pin
MCMickJ1913-Feb-15 3:12
MCMickJ1913-Feb-15 3:12 
AnswerRe: When to use dependency injection? Pin
Ed K13-Feb-15 8:04
Ed K13-Feb-15 8:04 
Regarding your INowResolver which as stated below it's understandable especially for testing.

There are better ways to handle that.

From ayende.com[^].

C#
public static class SystemTime
{
	public static Func<DateTime> Now = () => new SqlDateTime(DateTime.Now).Value;
}


Then in tests

C#
SystemTime.Now = () => new DateTime(2000,1,1);

ed

~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.

GeneralRe: When to use dependency injection? Pin
Super Lloyd13-Feb-15 19:52
Super Lloyd13-Feb-15 19:52 
AnswerRe: When to use dependency injection? Pin
jschell13-Feb-15 12:27
jschell13-Feb-15 12:27 
GeneralNot much going on... Pin
Brisingr Aerowing11-Feb-15 12:10
professionalBrisingr Aerowing11-Feb-15 12:10 
GeneralRe: Not much going on... Pin
Super Lloyd11-Feb-15 16:00
Super Lloyd11-Feb-15 16:00 
GeneralRe: Not much going on... Pin
Mark_Wallace11-Feb-15 23:32
Mark_Wallace11-Feb-15 23:32 
GeneralRe: Not much going on... Pin
Brisingr Aerowing12-Feb-15 5:22
professionalBrisingr Aerowing12-Feb-15 5:22 
GeneralRe: Not much going on... Pin
Mark_Wallace12-Feb-15 10:33
Mark_Wallace12-Feb-15 10:33 
GeneralRe: Not much going on... Pin
Brisingr Aerowing12-Feb-15 10:59
professionalBrisingr Aerowing12-Feb-15 10:59 
GeneralRe: Not much going on... Pin
Mark_Wallace12-Feb-15 11:39
Mark_Wallace12-Feb-15 11:39 
GeneralRe: Not much going on... Pin
Brisingr Aerowing13-Feb-15 9:49
professionalBrisingr Aerowing13-Feb-15 9:49 
GeneralRe: Not much going on... Pin
Mark_Wallace13-Feb-15 10:29
Mark_Wallace13-Feb-15 10:29 
GeneralThe Spirit of the FileMatrix Lives on! Pin
Mark_Wallace11-Feb-15 7:50
Mark_Wallace11-Feb-15 7:50 
GeneralRe: The Spirit of the FileMatrix Lives on! Pin
Kenneth Haugland11-Feb-15 7:58
mvaKenneth Haugland11-Feb-15 7:58 
GeneralRe: The Spirit of the FileMatrix Lives on! Pin
User 842011-Feb-15 8:02
User 842011-Feb-15 8:02 
GeneralRe: The Spirit of the FileMatrix Lives on! Pin
Kenneth Haugland11-Feb-15 8:04
mvaKenneth Haugland11-Feb-15 8:04 
GeneralRe: The Spirit of the FileMatrix Lives on! Pin
Mark_Wallace11-Feb-15 8:18
Mark_Wallace11-Feb-15 8:18 
GeneralRe: The Spirit of the FileMatrix Lives on! Pin
Kenneth Haugland11-Feb-15 8:25
mvaKenneth Haugland11-Feb-15 8:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   24 votes