Exemplo n.º 1
0
        public async Task TestReadData()
        {
            var status = await _symo823m.ReadCommonModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.CommonModel.IsGood);
            status = await _symo823m.ReadInverterModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.InverterModel.IsGood);
            status = await _symo823m.ReadNameplateModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.NameplateModel.IsGood);
            status = await _symo823m.ReadSettingsModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.SettingsModel.IsGood);
            status = await _symo823m.ReadExtendedModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.ExtendedModel.IsGood);
            status = await _symo823m.ReadControlModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.ControlModel.IsGood);
            status = await _symo823m.ReadMultipleModelAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.MultipleModel.IsGood);
            status = await _symo823m.ReadFroniusRegisterAsync();

            Assert.True(status.IsGood);
            Assert.True(_symo823m.FroniusRegister.IsGood);
        }