public void KnowsWhenWeHaveNoSecretAndUuidForThermostat() { var thermostat = new Thermostat { Serial = "Thermostat1" }; var thermostats = new Thermostats(); thermostats.thermostats.Add(thermostat); Assert.IsFalse(thermostats.HasSecretAndUuidFor("Thermostat1")); }
public void KnowsThatUuidIsNotEnoughForSecretAndUuid() { var thermostat = new Thermostat { Serial = "Thermostat1", Uuid = "5D7000A0-0D45-41FC-B6AD-08CB8BC149B9", }; var thermostats = new Thermostats(); thermostats.thermostats.Add(thermostat); Assert.IsFalse(thermostats.HasSecretAndUuidFor("Thermostat1")); }
public void KnowsThatSecretIsNotEnoughForSecretAndUuid() { var thermostat = new Thermostat { Serial = "Thermostat1", SecretKey = "ABC" }; var thermostats = new Thermostats(); thermostats.thermostats.Add(thermostat); Assert.IsFalse(thermostats.HasSecretAndUuidFor("Thermostat1")); }
public void KnowsWhenWeHaveSecretAndUuidForThermostat() { var thermostat = new Thermostat { Serial = "Thermostat1", Uuid = "5D7000A0-0D45-41FC-B6AD-08CB8BC149B9", SecretKey = "ABC" }; var thermostats = new Thermostats(); thermostats.thermostats.Add(thermostat); Assert.IsTrue(thermostats.HasSecretAndUuidFor("Thermostat1")); }
public void KnowsThatWeHaveNoSecretForMissingThermostat() { var thermostats = new Thermostats(); Assert.IsFalse(thermostats.HasSecretAndUuidFor("Don't know this diddy")); }