Exemple #1
0
        public async void GetMazebotRandom_Should_Call_IApiRequestProvider_CreateGetRequest()
        {
            Dictionary <string, string> queries = null;

            _requestProvider.CreateGetRequest(Arg.Any <string>(), Arg.Any <Dictionary <string, string> >(), Arg.Do <Dictionary <string, string> >(a => queries = a));

            await _client.GetMazebotRandom(null, null);

            _requestProvider.Received(1).CreateGetRequest($"{_noopsUrl}/mazebot/random", Arg.Any <Dictionary <string, string> >(), Arg.Any <Dictionary <string, string> >());
            queries.Should().BeEmpty();
        }
Exemple #2
0
 private async Task <MazebotResponse> GetRandomMaze(int?minSize, int?maxSize)
 {
     return(await _apiClient.GetMazebotRandom(minSize, maxSize));
 }