public void ThenIShouldSeeStatusCodeForAllOfTheCalls(int p0) { Assert.Throws <MemberApiValidationException>(async() => await MemberApiProxy.GameListAsync(new GamesRequest { PlayerUsername = TestDataGenerator.GetRandomString() })); }
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() })); }
public void WhenITryToSendGETRequestToGameControllerEndPoint() { ErrorMessagesFromUnauthorizedCalls.Add(Assert.Throws <MemberApiProxyException>( async() => await MemberApiProxy.GameListAsync(new GamesRequest())).Exception.ErrorMessage); }