public void GetSheetsByCoordinate(double lat, double lon, int scale, string sheets, int count) { var sheetService = new SheetService(_sheetRepository); var result = sheetService.GetSheetsByCoordinate(lat, lon, scale).ToArray(); Assert.Equal(count, result.Length); var sheetNames = sheets.Split(','); for (int i = 0; i < count; i++) { Assert.Equal(sheetNames[i], result[i].Name); } }