@@ -11,20 +11,16 @@ public class DummyCalculatorServiceTest : CalculatorServiceTest<DummyScore, Dumm
11
11
[ InlineData ( 15 , 1500 , "test 1" , 150 ) ]
12
12
[ InlineData ( 10 , 1000 , "test 2" , 100 ) ]
13
13
public void Test ( double expectedDifficultyTotal , double expectedPerformanceTotal , string beatmapId , int mods )
14
- => base . TestGetCalculationReturnsCorrectValues ( expectedDifficultyTotal , expectedPerformanceTotal , new DummyScore { BeatmapId = beatmapId , Mods = mods } ) ;
14
+ => TestGetCalculationReturnsCorrectValues ( expectedDifficultyTotal , expectedPerformanceTotal , new DummyScore { BeatmapId = beatmapId , Mods = mods } ) ;
15
15
}
16
16
17
17
/// <summary>
18
18
/// A dummy calculator service implementation that calculates difficulty as (beatmap id + mods) / 10 and performance as difficulty * 100
19
19
/// </summary>
20
- public class DummyCalculatorService : CalculatorService < DummyScore , DummyDifficulty , DummyPerformance , DummyCalculation >
20
+ public class DummyCalculatorService ( ICache cache ) : CalculatorService < DummyScore , DummyDifficulty , DummyPerformance , DummyCalculation > ( cache )
21
21
{
22
- public DummyCalculatorService ( ICache cache ) : base ( cache )
23
- {
24
- }
25
-
26
22
public override CalculatorInfo Info =>
27
- new CalculatorInfo
23
+ new ( )
28
24
{
29
25
RulesetName = "Dummy" ,
30
26
CalculatorName = "Dummy calculator" ,
@@ -40,7 +36,7 @@ protected override (object, string) CalculateDifficultyAttributes(DummyScore sco
40
36
}
41
37
42
38
protected override DummyCalculation CalculatePerformance ( DummyScore score , object difficultyAttributes ) =>
43
- new DummyCalculation ( )
39
+ new ( )
44
40
{
45
41
Difficulty = new DummyDifficulty ( ) { Total = ( double ) difficultyAttributes } ,
46
42
Performance = new DummyPerformance ( ) { Total = ( double ) difficultyAttributes * 100 }
0 commit comments