put lendTime, Category adjustment into constructor
This commit is contained in:
parent
c0c12cba82
commit
c13e5ae800
2 changed files with 2 additions and 3 deletions
3
Book.cs
3
Book.cs
|
@ -52,7 +52,8 @@ namespace Bücherwurm
|
|||
|
||||
public Book()
|
||||
{
|
||||
|
||||
Category = "book";
|
||||
LendTime = 30;
|
||||
}
|
||||
|
||||
public void OverwriteNullId(int id)
|
||||
|
|
|
@ -23,8 +23,6 @@ namespace Bücherwurm
|
|||
foreach (var Ibook in IntermediateBooks)
|
||||
{
|
||||
Ibook.OverwriteNullId(NextId);
|
||||
Ibook.Category = "book";
|
||||
Ibook.LendTime = 30;
|
||||
NextId += 1;
|
||||
}
|
||||
Products = new List<IProduct>(IntermediateBooks);
|
||||
|
|
Loading…
Reference in a new issue