public async void can_upload_asset() { OrganisationsClient organisationsClient = new OrganisationsClient(ACCESS_KEY, SECRET_KEY, TenantName.ONEBLINK_TEST); using (var stream = GenerateStreamFromString("data")) { var response = await organisationsClient.UploadAsset(stream, "text/plain", "test.txt"); Assert.NotNull(response); } }
public void throws_error_if_keys_empty() { try { OrganisationsClient organisations = new OrganisationsClient( "", "" ); } catch (Exception ex) { Assert.NotNull(ex); } }
public void can_be_constructed() { OrganisationsClient organisations = new OrganisationsClient(ACCESS_KEY, SECRET_KEY); Assert.NotNull(organisations); }