ParseMonitorResponse() публичный Метод

public ParseMonitorResponse ( string jsonResponse ) : MonitorInformation
jsonResponse string
Результат MonitorInformation
        public void EmptyResponseTest()
        {
            var schnittstelle = new EchtzeitdatenSchnittstelle();
            MonitorInformation result = schnittstelle.ParseMonitorResponse(ResponseFiles.LoadJson(ResponseFiles.EmptyOkResponse));

            Assert.That(result.ErrorCode, Is.EqualTo(MonitorInformationErrorCode.MonitorsEmpty));
        }
        public void InvalidKeyTest()
        {
            var schnittstelle = new EchtzeitdatenSchnittstelle();
            MonitorInformation result = schnittstelle.ParseMonitorResponse(ResponseFiles.LoadJson(ResponseFiles.InvalidKeyResponse));

            Assert.That(result.ErrorCode, Is.EqualTo(MonitorInformationErrorCode.ServerAuthenticationFailed));
        }
        public void U6SiebenhirtenTest()
        {
            var schnittstelle = new EchtzeitdatenSchnittstelle();
            MonitorInformation result = schnittstelle.ParseMonitorResponse(ResponseFiles.LoadJson(ResponseFiles.U6Siebenhirten));

            Assert.That(result.Succeeded, Is.EqualTo(true));
            Assert.That(result.Lines.Count, Is.EqualTo(1));
            Assert.That(result.Lines[0].Departures.Count, Is.EqualTo(2));
        }
        public void RBL2170HubertusdammTest()
        {
            var schnittstelle = new EchtzeitdatenSchnittstelle();
            MonitorInformation result = schnittstelle.ParseMonitorResponse(ResponseFiles.LoadJson(ResponseFiles.RBL2170Hubertusdamm));

            Assert.That(result.Succeeded, Is.EqualTo(true));
            Assert.That(result.Lines.Count, Is.EqualTo(1));
            Assert.That(result.Lines[0].Departures.Count, Is.EqualTo(9));
        }