public void RegisterStationaryAirConditionerValid()
        {
            Database database = new Database();
            var model = "Model";
            var manufacturer = "TushibaTune";
            var command = new RegisterStationaryAirConditioner(database, manufacturer, model, "A", 10);
            var expected = command.Execute();
            var real = string.Format(
                    "Air Conditioner model {0} from {1} registered successfully.",
                    manufacturer,
                    model
                );

            Assert.AreEqual(expected, real);
        }
        public string RegisterStationaryAirConditioner(string manufacturer, string model, string energyEfficiencyRating, int powerUsage)
        {
            var command = new RegisterStationaryAirConditioner(
                this.database,
                manufacturer,
                model,
                energyEfficiencyRating,
                powerUsage);

            return command.Execute();
        }
 public void RegisterStationaryAirConditionerDublicate()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "aasdasdasd", "modelmodel", "A", 10);
     command.Execute();
     command.Execute();
 }
 public void RegisterStationaryAirConditionerWithNotPositivePowerUsage()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "aasdasdasd", "modelmodel", "A", -10);
 }
 public void RegisterStationaryAirConditionerWithNotValidEnergyEffiencyRating()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "aasdasdasd", "modelmodel", "baba", 10);
 }
 public void RegisterStationaryAirConditionerWithNotValidModel2()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "aasdasdasd", "", "A", 10);
 }
 public void RegisterStationaryAirConditionerWithNullModel()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "aasdasdasd", null, "A", 10);
 }
 public void RegisterStationaryAirConditionerWithNotValidManufacturer2()
 {
     Database database = new Database();
     var command = new RegisterStationaryAirConditioner(database, "a", "model", "A", 10);
 }