public async Task ActionTest() { try { var serviceProvider = services.BuildServiceProvider(); gamificationFunctionClient = serviceProvider.GetService <GamificationClient>(); var ar = new Platform.Common.ActionRequest() { ActionId = Guid.NewGuid().ToString("N"), SessionHierarchy = "2020:11:22", OccurredOn = DateTimeOffset.UtcNow.AddMinutes(-60) }; var json = JsonConvert.SerializeObject(ar); var success = await gamificationFunctionClient.ActionCompletedV1Async( Guid.NewGuid(), Guid.NewGuid().ToString("N"), ar, 33.753746, -84.386330 ); Assert.IsTrue(success); } catch (Exception ex) { throw; } }
public async Task GetPlayerStatisticsTest() { try { var serviceProvider = services.BuildServiceProvider(); gamificationFunctionClient = serviceProvider.GetService <GamificationClient>(); var response = await gamificationFunctionClient.GetPlayerStatisticsV1Async(Guid.NewGuid(), Guid.Parse("b0410176-edff-47c5-80f5-9e96259702e1"), 33.753746, -84.386330); Assert.IsNotNull(response); } catch (Exception ex) { throw; } }