Example #1
0
        public void GettingDocument_WithHttpMethod_IsExpected()
        {
            var sut = GetDocumentFile.FromDocument("e59c8dc8-8848-4936-ac7c-50d9ed72085a", 0);

            var actual = sut.Method;

            Assert.AreEqual(HttpMethod.Get, actual);
        }
Example #2
0
        public void GettingDocument_WithContent_IsNull()
        {
            var sut = GetDocumentFile.FromDocument("e59c8dc8-8848-4936-ac7c-50d9ed72085a", 0);

            var actual = sut.Content;

            Assert.IsNull(actual);
        }
Example #3
0
        public void GettingDocument_WithDocumentInformation_SetsUriCorrectly()
        {
            var sut = GetDocumentFile.FromDocument("e59c8dc8-8848-4936-ac7c-50d9ed72085a", 0);

            var actual = sut.ResourceUri;

            Assert.AreEqual("api/v1/document/e59c8dc8-8848-4936-ac7c-50d9ed72085a/files/0", actual);
        }