private async Task <FirebaseConnection> GetConnectedSUT() { var cred = JsonFile.Read <FirebaseCredentials>("firebaseConxn.cfg"); var sut = new FirebaseConnection(cred); var isOK = await sut.Open(); isOK.Should().BeTrue("Can't connect"); sut.IsConnected.Should().BeTrue(); return(sut); }
private async Task <AgentStateUpdater> GetConnectedSUT() { var cred = JsonFile.Read <FirebaseCredentials>("firebaseConxn.cfg"); _conn = new FirebaseConnection(cred); var isOK = await _conn.Open(); isOK.Should().BeTrue("Can't connect"); _conn.IsConnected.Should().BeTrue(); var agt = new AgentStateUpdater(_conn, cred); _conn.AgentID = Fake.Text; return(agt); }