public void TestCuilliereBoisAdd() { var tmp = Ustenciles.GetInstance().GetCuilliereBois(); Ustenciles.GetInstance().SetCuilliereBois(5); Assert.AreEqual(Ustenciles.GetInstance().GetCuilliereBois(), tmp + 5, "CuilliereBois did not increase"); }
public void TesCouteauxMin() { var tmp = Ustenciles.GetInstance().GetCouteaux(); Ustenciles.GetInstance().SetCouteaux(-5); Assert.AreEqual(Ustenciles.GetInstance().GetCouteaux(), tmp - 5, "Couteaux did not decrease"); }
public void TestPoelsMin() { var tmp = Ustenciles.GetInstance().GetPoels(); Ustenciles.GetInstance().SetPoels(-5); Assert.AreEqual(Ustenciles.GetInstance().GetPoels(), tmp - 5, "Poels did not decrease"); }
public void TestCouteauxAdd() { var tmp = Ustenciles.GetInstance().GetCouteaux(); Ustenciles.GetInstance().SetCouteaux(5); Assert.AreEqual(Ustenciles.GetInstance().GetCouteaux(), tmp + 5, "Couteaux did not increase"); }
public void TesEntoinnoirsMin() { var tmp = Ustenciles.GetInstance().GetEntoinnoirs(); Ustenciles.GetInstance().SetEntoinnoirs(-5); Assert.AreEqual(Ustenciles.GetInstance().GetEntoinnoirs(), tmp - 5, "Entoinnoirs did not decrease"); }
public void TestEntoinnoirsAdd() { var tmp = Ustenciles.GetInstance().GetEntoinnoirs(); Ustenciles.GetInstance().SetEntoinnoirs(5); Assert.AreEqual(Ustenciles.GetInstance().GetEntoinnoirs(), tmp + 5, "Entoinnoirs did not increase"); }
public void TestCuilliereBoisMin() { var tmp = Ustenciles.GetInstance().GetCuilliereBois(); Ustenciles.GetInstance().SetCuilliereBois(-5); Assert.AreEqual(Ustenciles.GetInstance().GetCuilliereBois(), tmp - 5, "CuilliereBois did not decrease"); }
public void TestBolSaladesAdd() { var tmp = Ustenciles.GetInstance().GetBolSalades(); Ustenciles.GetInstance().SetBolSalades(5); Assert.AreEqual(Ustenciles.GetInstance().GetBolSalades(), tmp + 5, "BolSalades did not increase"); }
public void TesPresseAgrumessMin() { var tmp = Ustenciles.GetInstance().GetPresseAgrumes(); Ustenciles.GetInstance().SetPresseAgrumes(-5); Assert.AreEqual(Ustenciles.GetInstance().GetPresseAgrumes(), tmp - 5, "PresseAgrumes did not decrease"); }
/// <summary> /// Private constructor of the Singleton without args /// </summary> private Cuisine(Stock stock, Machines[] machines, Ustenciles ustenciles, PassePlat passePlat) { this.Stock = stock; this.Machines = machines; this.Ustenciles = ustenciles; this.PassePlat = passePlat; }
/// <summary> /// Private constructor of the Singleton without args /// </summary> private Cuisine() { this.Stock = null; this.Machines = null; this.Ustenciles = null; this.PassePlat = null; }
public void TestPresseAgrumesAdd() { var tmp = Ustenciles.GetInstance().GetPresseAgrumes(); Ustenciles.GetInstance().SetPresseAgrumes(5); Assert.AreEqual(Ustenciles.GetInstance().GetPresseAgrumes(), tmp + 5, "PresseAgrumes did not increase"); }
public void TesBolSaladesMin() { var tmp = Ustenciles.GetInstance().GetBolSalades(); Ustenciles.GetInstance().SetBolSalades(-5); Assert.AreEqual(Ustenciles.GetInstance().GetBolSalades(), tmp - 5, "BolSalades did not decrease"); }
/// <summary> /// Creation and return of the singleton with args /// </summary> public static Cuisine GetInstance(Stock stock, Machines[] machines, Ustenciles ustenciles, PassePlat passePlat) { if (Instance == null) { Cuisine.Instance = new Cuisine(stock, machines, ustenciles, passePlat); } return(Cuisine.Instance); }
/// <summary> /// Creation and return of the singleton with args /// </summary> public static Ustenciles GetInstance(int casseroles, int poels, int cuillireBois, int bolSalades, int PressesAgrumes, int tamis, int entonnoirs, int couteaux) { if (Instance is null) { Instance = new Ustenciles(casseroles, poels, cuillireBois, bolSalades, PressesAgrumes, tamis, entonnoirs, couteaux); } return(Instance); }
/// <summary> /// Creation and return of the singleton without args /// </summary> public static Ustenciles GetInstance() { if (Instance is null) { Instance = new Ustenciles(); } return(Instance); }
public CuisineTest() { stock = Stock.GetInstance(); machinesUn = new Machines("test1", 35); machinesDeux = new Machines("test3", 35); array = new Machines[2] { machinesDeux, machinesUn }; ustenciles = Ustenciles.GetInstance(); passePlat = PassePlat.GetInstance(); }
public void TestSingletonUstenciles() { Assert.AreEqual(Ustenciles.GetInstance(5, 5, 5, 5, 5, 5, 5, 5), Ustenciles.GetInstance(), "Ustenciles is not a singleton"); }