Esempio n. 1
0
        public async Task Should_get_printer_info()
        {
            _fakeMigo
            .ReplyMode(FakeMigoMode.Reply)
            .ReplyPrinterInfo();

            var result = await _migo.GetPrinterInfo()
                         .ConfigureAwait(false);

            result.StatedDescription.Should().Be("modelprinting:3DBenchy.gcode");
        }
Esempio n. 2
0
        public async Task Should_get_migo_printerinfo()
        {
            var endpoint = new MigoEndpoint(MigoIp, MigoPort);
            var migo     = new Migo(Init.LoggerFactory, endpoint);

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

            Log.Information(JsonConvert.SerializeObject(state));

            state.Success.Should().BeTrue();
        }