-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Parry-Howells
committed
Nov 14, 2019
1 parent
36d7961
commit dfcd54b
Showing
3 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/java/com/capgemini/tdd/demo/models/TalkyNumber.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.capgemini.tdd.demo.models; | ||
|
||
import com.capgemini.tdd.demo.services.NumberService; | ||
|
||
public class TalkyNumber { | ||
private final long id; | ||
private final int number; | ||
private NumberService talkynumbers = new NumberService(); | ||
|
||
public TalkyNumber(long id, int number) { | ||
this.id = id; | ||
this.number= number; | ||
} | ||
|
||
public long getId() { | ||
return id; | ||
} | ||
|
||
public String getNumber() { | ||
return talkynumbers.convert(number); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters