Beispiel #1
0
        public async void AddBrawlTest(string FirstClubName, string SecondClubName, DateTime date, Location location)
        {
            var request = new BrawlRequest()
            {
                FirstClubName  = FirstClubName,
                SecondClubName = SecondClubName,
                Date           = date,
                Location       = location
            };

            var result = await _brawlService.AddBrawl(request);

            Assert.True(result.Success);
        }
Beispiel #2
0
        public async void AddBrawlTest(string FirstClubName, string SecondClubName, string date, float longitude, float latitude)
        {
            var request = new BrawlRequest()
            {
                FirstClubName  = FirstClubName,
                SecondClubName = SecondClubName,
                Date           = date,
                Longitude      = longitude,
                Latitude       = latitude
            };

            var result = await _brawlService.AddBrawl(request);

            Assert.True(result.Success);
        }
Beispiel #3
0
 public async Task <IActionResult> AddBrawl(BrawlRequest request) => ResolveResponse(await _brawlsService.AddBrawl(request));