diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-04 16:44:48 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-04 16:44:48 +0200 |
| commit | ba6abe56c52a9ba0e73c30062ed2e73dee883fa6 (patch) | |
| tree | 3348b09b1e8188244bad289903edcb2e8a519f1c /Software/Visual_Studio/Tango.UnitTesting | |
| parent | 2885eca102b05b2a853f3b1f082f39d48b0132a2 (diff) | |
| download | Tango-ba6abe56c52a9ba0e73c30062ed2e73dee883fa6.tar.gz Tango-ba6abe56c52a9ba0e73c30062ed2e73dee883fa6.zip | |
Added basic skeleton for job printing communication.
Added Job Handling for Machine Operator & Machine Emulator.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting')
| -rw-r--r-- | Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs index edf8b2833..2e3776677 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/Protobuf_TST.cs @@ -66,17 +66,17 @@ namespace Tango.UnitTesting { var console = Helper.InitializeLogging(true); - TangoMessage<Job> container = MessageFactory.CreateTangoMessage<Job>(); + TangoMessage<JobTicket> container = MessageFactory.CreateTangoMessage<JobTicket>(); container.Message.Name = "Test Job"; - container.Message.Segments.Add(new Segment() + container.Message.Segments.Add(new JobSegment() { Length = 10, Name = "Segment 1" }); - container.Message.Segments.Add(new Segment() + container.Message.Segments.Add(new JobSegment() { Length = 100, Name = "Segment 2" @@ -86,7 +86,7 @@ namespace Tango.UnitTesting var bytes = container.ToBytes(); - var parsed = MessageFactory.ParseTangoMessage<Job>(bytes); + var parsed = MessageFactory.ParseTangoMessage<JobTicket>(bytes); LogManager.Log("Read Message:" + Environment.NewLine + JsonConvert.SerializeObject(parsed.Message, Formatting.Indented)); |
