public void NoteHistoryIsEmpty() { FirstSyncForBothSides(); var client = testServer.GetJsonClient(); var first_note = clientEngineOne.GetNotes().Values.First(); var url = GetNoteHistoryUrl(first_note.Guid); var resp = client.Get <NoteHistoryResponse> (url); Assert.AreEqual(0, resp.CurrentRevision); //Assert.AreEqual (0, resp.Versions.Length); }
public void GetShareableUrlWorks() { FirstSyncForBothSides(); var client = testServer.GetJsonClient(); var first_note = clientEngineOne.GetNotes().Values.First(); var url = testServer.ListenUrl + new GetPublicUrlForNote() { Username = RainyTestServer.TEST_USER }.ToUrl("GET"); var resp = client.Get <string> (url); // fetch the note from that url via simple, unauthed http request var wc = new WebClient(); var content = wc.DownloadString(resp); Assert.Fail("Not implemented yet"); }