public bool ReadDataFromModul2(Code code, DateTime start, DateTime end) { m_Modul2 = new Modul2(); List <CollectionDescription> returnList = new List <CollectionDescription>(); returnList = m_Modul2.ReadDataForReader(code); if (returnList.Count != 0) { Console.WriteLine(""); Console.WriteLine("-------Element liste za {0} code: -----", code); Console.WriteLine(""); foreach (CollectionDescription item in returnList) { if (item.timeStamp >= start && item.timeStamp <= end) { Console.WriteLine(item); Console.WriteLine(""); } Console.WriteLine("------------------------------------------------"); } } else { Console.WriteLine("Fajl za {0} code je prazan..."); } return(true); }
public void SetupMethods() { modul1 = Substitute.For <IModul1>(); modul2 = Substitute.For <IModul2>(); modul1.ReceiveFromInput(Arg.Any <Code>(), Arg.Any <int>()).Returns(true); modul2.ReceiveFromInput(Arg.Any <Code>(), Arg.Any <int>()).Returns(true); }