public async void EditBrawlTest(string firstClubName, string secondClubName, string date, float longitude, float latitude, int id, string firstClubNameEdit, string secondClubNameEdit, string dateEdit, float longitudeEdit, float latitudeEdit) { var request1 = new BrawlRequest() { FirstClubName = firstClubName, SecondClubName = secondClubName, Date = date, Longitude = longitude, Latitude = latitude }; var request2 = new BrawlRequest() { FirstClubName = firstClubNameEdit, SecondClubName = secondClubNameEdit, Date = dateEdit, Longitude = longitudeEdit, Latitude = latitudeEdit }; var fakeBrawl = await _brawlService.AddBrawl(request1); var fODBrawl = await _contextBuilder.Context.Brawls.FirstOrDefaultAsync(i => i.Id == id); var result = await _brawlService.EditBrawl(id, request2); Assert.True(result.Success); }
public async Task <IActionResult> EditBrawl(int id, BrawlRequest request) => ResolveResponse(await _brawlsService.EditBrawl(id, request));