示例#1
0
 public PowerBreakdownTests()
 {
     httpFacade = Substitute.For <IElectricityMapHttpFacade>();
     sut        = new ElectricityMapClient(httpFacade);
 }
 public ElectricityMapClientInterfaceTests()
 {
     httpFacade = Substitute.For <IElectricityMapHttpFacade>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ElectricityMapClient"/> class.
 /// </summary>
 /// <param name="httpFacade"></param>
 public ElectricityMapClient(IElectricityMapHttpFacade httpFacade)
 {
     this.httpFacade = httpFacade;
 }
示例#4
0
 public CarbonIntensityTests()
 {
     httpFacade = Substitute.For <IElectricityMapHttpFacade>();
     sut        = new ElectricityMapClient(httpFacade);
 }
示例#5
0
 public ZoneTests()
 {
     httpFacade = Substitute.For <IElectricityMapHttpFacade>();
     sut        = new ElectricityMapClient(httpFacade);
 }