BloomTests.WebLibraryIntegration.BloomParseClientTests.GetBookRecord_BookIsThere_Succeeds C# (CSharp) Method

GetBookRecord_BookIsThere_Succeeds() private method

private GetBookRecord_BookIsThere_Succeeds ( ) : void
return void
        public void GetBookRecord_BookIsThere_Succeeds()
        {
            //first make a book so that we know it is there
            var id= CreateBookRecord();
            var bookjson = _client.GetSingleBookRecord(id);

            Assert.AreEqual(id, bookjson.bookInstanceId.Value);

            // Partial matches are no good
            Assert.IsNull(_client.GetSingleBookRecord(new Guid().ToString()));

            // Can't match if logged in as different user
            _client.LogIn("[email protected]", "unittest2");
            Assert.IsNull(_client.GetSingleBookRecord(id));
        }