Example #1
0
        public async Task Should_get_migo_state()
        {
            _fakeMigo
            .ReplyMode(FakeMigoMode.Stream);     // state can only be responded as incoming stream

            var state = await _migo.GetState()
                        .ConfigureAwait(false);

            state.Should().BeEquivalentTo(Some.FixedStateModel);
        }
Example #2
0
        public async Task Should_get_migo_state()
        {
            var endpoint = new MigoEndpoint(MigoIp, MigoPort);
            var migo     = new Migo(Init.LoggerFactory, endpoint);

            var state = await migo.GetState().ConfigureAwait(false);

            Log.Information(JsonConvert.SerializeObject(state));
            state.NozzleTemp.Should().BePositive();
        }