Skip to content

Commit

Permalink
Variables' name refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturro99 committed Nov 15, 2020
1 parent 3424ea5 commit eb3b5a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -348,3 +348,4 @@ MigrationBackup/

# Ionide (cross platform F# VS Code tools) working folder
.ionide/
/Task1/Task1/Properties
12 changes: 6 additions & 6 deletions Task1/Task1/Logic/DataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ public DataService(IDataRepository iDataRepository)
IDataRepository = iDataRepository;
}
#region Adding
public void AddBook(string Isbn, string Author, string Title, string Description)
public void AddBook(string isbn, string author, string title, string description)
{
Book book = new Book(Isbn, Author, Title, Description);
Book book = new Book(isbn, author, title, description);
IDataRepository.AddBook(book);
}

public void AddReader(string Name, string Surname, long PersonalId)
public void AddReader(string name, string surname, long personalId)
{
Reader reader = new Reader(Name, Surname, PersonalId);
Reader reader = new Reader(name, surname, personalId);
IDataRepository.AddReader(reader);
}

public void AddBookState(Book Book, bool Available, DateTime BuyingTime)
public void AddBookState(Book book, bool available, DateTime buyingTime)
{
BookState bookState = new BookState(Book, Available, BuyingTime);
BookState bookState = new BookState(book, available, buyingTime);
IDataRepository.AddBookState(bookState);
}
#endregion
Expand Down
2 changes: 1 addition & 1 deletion Task1/Task1/Logic/IDataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Task1.Logic
public interface IDataService
{
#region Adding
void AddBook(string Isbn, string Author, string Title, string Description);
void AddBook(string isbn, string author, string title, string description);
void AddReader(string Name, string Surname, long PersonalId);
void AddBookState(Book Book, bool Available, DateTime BuyingTime);
#endregion
Expand Down

0 comments on commit eb3b5a6

Please sign in to comment.