This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EndOfHeatTimeCalculator : IEndOfHeatTimeCalculator | |
{ | |
readonly ILastTappedHeatFetcher _lastTappedHeatFetcher; | |
public EndOfHeatTimeCalculator(ILastTappedHeatFetcher lastTappedHeatFetcher) | |
{ | |
_lastTappedHeatFetcher = lastTappedHeatFetcher; | |
} | |
#region IEndOfHeatTimeCalculator Members |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TapTimeCalculator : ITapTimeCalculator | |
{ | |
readonly ILastTappedHeatFetcher _lastTappedHeatFetcher; | |
public TapTimeCalculator(ILastTappedHeatFetcher lastTappedHeatFetcher) | |
{ | |
_lastTappedHeatFetcher = lastTappedHeatFetcher; | |
} | |
#region ITapTimeCalculator Members |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EAFPowerCalculator : IEAFPowerCalculator | |
{ | |
#region IEAFPowerCalculator Members | |
public Megawatts Calculate(Megawatts eafPowerRate, Minutes extraDelay, Minutes secondCharge, Minutes powerOn) | |
{ | |
var delay = extraDelay + secondCharge + powerOn; | |
double delayRate = (60 - Convert.ToDouble(delay.Value))/60; | |
double power = eafPowerRate.Value*delayRate; | |
return new Megawatts(power); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace RentAPlumber.Specs | |
{ | |
public class when_a_plumber_fixes_a_sink | |
{ | |
static Plumber _plumber; | |
static Sink _sink; | |
Establish context = () => | |
{ | |
_plumber = new Plumber(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Plumber | |
{ | |
public void FixSink(Sink sink) | |
{ | |
sink.Leaks.Clear(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace RentAPlumber.Specs | |
{ | |
public class when_a_plumber_fixes_a_sink | |
{ | |
static Plumber _plumber; | |
static Sink _sink; | |
Establish context = () => | |
{ | |
_plumber = new Plumber(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Plumber | |
{ | |
public bool CrackShowing { get; private set; } | |
public void FixSink(Sink sink) | |
{ | |
sink.Leaks.Clear(); | |
CrackShowing = true; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class when_a_plumber_fixes_a_sink | |
{ | |
static Plumber _plumber; | |
static Sink _sink; | |
Establish context = () => | |
{ | |
_plumber = new Plumber(); | |
_sink = new Sink | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Floor | |
{ | |
public List<Trash> Trash { get; set; } | |
} | |
public class Trash | |
{ | |
} | |
public class Sink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Plumber | |
{ | |
public bool CrackShowing { get; private set; } | |
public void FixSink(Sink sink) | |
{ | |
sink.Leaks.Clear(); | |
CrackShowing = true; | |
sink.Floor.Trash.Add(new Trash()); | |
} |
OlderNewer