public void BuildWithNativeApiAccountIdAndNumericHeader()
        {
            builder.SetApiUser(TestData.Credentials.UserId, TestData.NativeApiAccountId);
            var request = builder.BuildRequest(TestData.ApiRequest.Header);

            Assert.That(request.UserId, Is.EqualTo(TestData.Credentials.UserId));
            Assert.That(request.Header, Is.EqualTo(TestData.ApiRequest.Header));
            AssertIsEmptyRequestBody(request);
        }
コード例 #2
0
 public void Initialize()
 {
     requestBuilder = new FairlayPrivateApiRequestBuilder();
     requestBuilder.SetApiUser(TestData.Credentials.UserId, TestData.Credentials.ApiAccountId);
     requestSigner = new FairlayPrivateApiRequestSigner();
     requestSigner.SetRsaParameters(TestData.Credentials.PrivateRsaParameters);
     requestNonceGenerator = new FairlayPrivateApiRequestNonceGenerator();
     apiConnection         = new FairlayPrivateApiConnection();
 }