Example #1
0
 public void ThenIShouldSeeStatusCodeForAllOfTheCalls(int p0)
 {
     Assert.Throws <MemberApiValidationException>(async() =>
                                                  await MemberApiProxy.GameListAsync(new GamesRequest
     {
         PlayerUsername = TestDataGenerator.GetRandomString()
     }));
 }
Example #2
0
 public void ThenIShouldSeeStatusCodeSuccessfulForAllOfTheCalls(int p0)
 {
     Assert.DoesNotThrow(async() => await MemberApiProxy.GameListAsync(new GamesRequest
     {
         IsForMobile     = true,
         LobbyUrl        = TestDataGenerator.GetRandomString(),
         PlayerIpAddress = TestDataGenerator.GetRandomIpAddress(),
         PlayerUsername  = TestDataGenerator.GetRandomString(),
         UserAgent       = TestDataGenerator.GetRandomString()
     }));
 }
Example #3
0
 public void WhenITryToSendGETRequestToGameControllerEndPoint()
 {
     ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>(
                                                async() => await MemberApiProxy.GameListAsync(new GamesRequest())).Exception.ErrorMessage);
 }