public void When_User_Enters_ITunes_1st_March_2012() { var expected = @"Artist|Title|Usages|StartDate|EndDate Monkey Claw|Black Mountain|digital download|1st Feb 2012| Monkey Claw|Motor Mouth|digital download|1st Mar 2011| Tinie Tempah|Frisky (Live from SoHo)|digital download|1st Feb 2012| Tinie Tempah|Miami 2 Ibiza|digital download|1st Feb 2012| "; var contracts = _musicContractService.GetMusicContracts("iTunes", "1st March 2012".GetDateTimeFromOrdinal().Value); var output = _consolePrinterService.Print(contracts); Assert.Equal(expected, output); }
private static void Print() { System.Console.Clear(); System.Console.WriteLine("Enter printer name"); string name = System.Console.ReadLine(); System.Console.WriteLine("Enter printer model"); string model = System.Console.ReadLine(); service.Print(PrintersFabric.Create(name, model)); }