public RequestPrintForm RequestConnection(int id, DocumentForPrint document) { string printerName = "Printer-" + new Random().Next(2000, 3000); //string computerName = "Computer-" + new Random().Next(1000, 2000); var request = new RequestPrintForm(printerName, document, Policy.Private); return(request); }
public void SendInformationAboutDocumentToPrinter() { var document = InformationAboutDocumentLogic.ShowReadyDocument(); int number = new Random().Next(0, 1000); var computer = new Computer("Computer-" + number); var printer = new Printer("Printer-" + number + 1); var request = new RequestPrintForm(printer.Name, document, Policy.Public); }
public void Print(RequestPrintForm request) { Console.Clear(); Console.WriteLine("Request recieved succesfully!"); }