/// <summary> /// <para>initalize instances (LotteriesTicket, LotteriesNumber)</para> /// Print greeting Message /// </summary> public static void LotteriesController() { LotteriesNumber randomNumber = new LotteriesNumber(); PrintGreeting(randomNumber.ValidLength, randomNumber.MaxValue); LotteriesTicket ticket = new LotteriesTicket(); LotteriesCompare compareTicketWithNumber = new LotteriesCompare(ticket, randomNumber); }
public LotteriesCompare(LotteriesTicket lotteriesTicket, LotteriesNumber lotteriesNumber) { this.lotteriesTicket = lotteriesTicket; this.lotteriesNumber = lotteriesNumber; PrintTicketWithRandomNumberComparison(); }