Ejemplo n.º 1
0
        public async void GetBrawlsTest(string firstClubName, string secondClubName, string date, float longitude, float latitude, string firstClubName2, string secondClubName2, string date2, float longitude2, float latitude2, int skip, int take)
        {
            var request1 = new BrawlRequest()
            {
                FirstClubName  = firstClubName,
                SecondClubName = secondClubName,
                Date           = date,
                Longitude      = longitude,
                Latitude       = latitude
            };
            var request2 = new BrawlRequest()
            {
                FirstClubName  = firstClubName2,
                SecondClubName = secondClubName2,
                Date           = date2,
                Longitude      = longitude2,
                Latitude       = latitude2
            };

            var fakeBrawl = await _brawlService.AddBrawl(request1);

            var fakeBrawl2 = await _brawlService.AddBrawl(request2);

            var result = await _brawlService.GetBrawls(skip, take);

            Assert.True(result.Success);
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> GetBrawls(int skip, int take) => ResolveResponse(await _brawlsService.GetBrawls(skip, take));