static void Main(string[] args) { // sample 0 Sample0.Person v = FluentPersonFactory .Init() .GiveAColor("") .GiveAGravatar("") .GiveANickName("") .SetForce(20) .TakeAHero(); // sample 1 //var emre = FluentFactory<Player> // .Initialize(new Player()) // .GiveAValue("LastLevel", 12) // .GiveAValue("NickName", "CoolBoy") // .Take(); var burko = FluentFactory<Player> .Initialize(new Player()) .GiveAValue(x => x.NickName, "Emre") .GiveAValue(d => d.LastLevel, 12); // sample 2 Car c = new Car() .SetName("") .SetModel("") .SetPlate("") .SetPower(12); // sample 3 var personals = new PersonFinder() .FirstName("Emre") .LastName("Keskin") .Find(); // sample 4 Vehicle vh = new Vehicle() { Plate = "" }; var militaryOpr = new MilitaryVehicleOperation() .Add(new Vehicle()) .Add(new Vehicle() { SerialNo = "", Plate = "64-MIT-265" }) .Remove(vh); // sample 5 var account = new Account() .Create() .SetAccountType(14) .SetAccountNumber(12345) .SetAccountSuffix(354) .SetCustomerName("yunus emre"); }
public MilitaryVehicleOperation Remove(Vehicle vehicle) { this._vehicles.Remove(vehicle); return this; }
public MilitaryVehicleOperation Add(Vehicle vehicle) { this._vehicles.Add(vehicle); return this; }