-
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.
Merge pull request #3 from ChloeParry23/master
Fixed Code
- Loading branch information
Showing
4 changed files
with
38 additions
and
3 deletions.
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
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