20 lines
454 B
C#
20 lines
454 B
C#
using YachtDice.Scoring;
|
|
|
|
namespace YachtDice.UI.Presentation
|
|
{
|
|
public sealed class ScoreSummaryService : IScoreSummaryService
|
|
{
|
|
private readonly ScoringSystem _scoringSystem;
|
|
|
|
public ScoreSummaryService(ScoringSystem scoringSystem)
|
|
{
|
|
_scoringSystem = scoringSystem;
|
|
}
|
|
|
|
public ScoreSummary Calculate()
|
|
{
|
|
return new ScoreSummary(_scoringSystem.TotalScore);
|
|
}
|
|
}
|
|
}
|