예제 #1
0
        public async Task RequestToken_WithoutTimeStamp_SetsCurrentTimeOnTheRequest()
        {
            var tokenParams = new TokenParams();

            var client = GetRestClient();
            await client.Auth.RequestTokenAsync(tokenParams);

            var data = LastRequest.PostData as TokenRequest;

            Now.Should().BeCloseTo(data.Timestamp.Value, TimeSpan.FromMilliseconds(200));
        }