public async Task Should_List_Conditions() { await ApiServiceFixture.CreateApiServiceAsync(); var @params = new EmptyParameters(); var result = await ApiServiceFixture._apiService.Execute(TcgApiUrls.Catalog.ListConditions, @params); Assert.True(result.Success); }
public void should_return_user_leaderboard_alias() { // arrange var @params = new EmptyParameters() { }; // act var result = Sut.Execute(BitmexApiUrls.Leaderboard.GetLeaderboardName, @params).Result.Result; // assert result.Should().NotBeNull(); }
public void should_return_instrument_indices() { // arrange var @params = new EmptyParameters { }; // act var result = Sut.Execute(BitmexApiUrls.Instrument.GetInstrumentIndices, @params).Result.Result; // assert result.Should().NotBeNull(); result.Count.Should().BeGreaterThan(0); }
public void should_return_comission() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.User.GetUserCommission, @params).Result.Result; // assert result.Should().NotBeNull(); result.Should().NotBeEmpty(); }
public void should_return_user_affiliate_status() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.User.GetUserAffiliateStatus, @params).Result.Result; // assert // returns nothing for test account result.Should().NotBeNull(); }
public void should_return_user() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.User.GetUser, @params).Result.Result; // assert result.Should().NotBeNull(); result.Email.Should().NotBeNullOrWhiteSpace(); }
public void should_return_stats_history_usd() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.Stats.GetStatsHistoryUsd, @params).Result.Result; // assert result.Should().NotBeNull(); result.Count.Should().BeGreaterOrEqualTo(1); }
public void should_return_all_chat_channels() { // arrange var @params = new EmptyParameters() { }; // act var result = Sut.Execute(BitmexApiUrls.Chat.GetChatChannels, @params).Result.Result; // assert result.Should().NotBeNull(); result.Count.Should().BeGreaterThan(0); result.First().ChannelId.Should().Be(1); result.First().Name.Should().Be("English"); }
public void should_return_count_connected_users_and_bots() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.Chat.GetChatConnected, @params).Result.Result; // assert result.Should().NotBeNull(); result.Bots.Should().BeGreaterThan(0); result.Users.Should().BeGreaterThan(0); }
public void should_return_all_active_intervals() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.Instrument.GetInstrumentActiveIntervals, @params).Result.Result; // assert result.Should().NotBeNull(); result.Intervals.Length.Should().BeGreaterThan(0); result.Symbols.Length.Should().BeGreaterThan(0); }
public void should_return_ratelimit_headers() { // arrange var @params = new EmptyParameters(); { }; // act var result = Sut.Execute(BitmexApiUrls.Stats.GetStats, @params).Result; // assert result.RateLimitLimit.Should().BeGreaterThan(0); result.RateLimitRemaining.Should().BeGreaterThan(0); result.RateLimitReset.Should().BeAfter(DateTime.UtcNow.AddSeconds(-2)); }
public void should_return_web_socket_help_schema() { // arrange var @params = new EmptyParameters() { }; // act var result = Sut.Execute(BitmexApiUrls.Schema.GetSchemaWebsocketHelp, @params).Result; // assert result.Should().NotBeNull(); result.Info.Should().NotBeNullOrEmpty(); result.Subscribe.Should().NotBeNullOrEmpty(); result.Usage.Should().NotBeNullOrEmpty(); result.Ops.Length.Should().BeGreaterThan(0); result.SubscriptionSubjects.Keys.Count.Should().BeGreaterThan(0); result.SubscriptionSubjects["public"].Should().Contain("chat"); }
private void OnTestEvent(EmptyParameters emptyParameters) { LogUtils.Log(MessageBuilder.Trace("Hello world!")); }