Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            DBBookFirst  dbfirst  = new DBBookFirst();
            DBBookSecond dbsecond = new DBBookSecond();

            Pipe1 pipe1 = new Pipe1();

            pipe1.LeftSource  = dbfirst;
            pipe1.RightSource = dbsecond;

            (new Thread(dbfirst.Run)).Start();
            (new Thread(dbsecond.Run)).Start();
            (new Thread(pipe1.Run)).Start();
        }
Ejemplo n.º 2
0
 public Pipe2(Pipe1 pipe1, string someExtraData)
 {
     pipe1.PipeData.Should().Be("Pipe1 data");
     someExtraData.Should().Be("some extra data");
 }