C# Class Playground.InMemoryEmployeeRepository

Inheritance: IEmployeeRepository
Datei anzeigen Open project: ravendb/docs

Public Methods

Method Description
CreateEmployee ( EmployeeId id, FullName name, decimal initialSalary ) : void
IsRegistered ( EmployeeId id ) : bool
Load ( EmployeeId id ) : Employee
RaiseSalary ( EmployeeId id, decimal amount ) : void
UpdateHomeAddress ( EmployeeId id, Address homeAddress ) : void

Method Details

CreateEmployee() public method

public CreateEmployee ( EmployeeId id, FullName name, decimal initialSalary ) : void
id Payroll.Domain.Model.EmployeeId
name FullName
initialSalary decimal
return void

IsRegistered() public method

public IsRegistered ( EmployeeId id ) : bool
id Payroll.Domain.Model.EmployeeId
return bool

Load() public method

public Load ( EmployeeId id ) : Employee
id Payroll.Domain.Model.EmployeeId
return Payroll.Domain.Model.Employee

RaiseSalary() public method

public RaiseSalary ( EmployeeId id, decimal amount ) : void
id Payroll.Domain.Model.EmployeeId
amount decimal
return void

UpdateHomeAddress() public method

public UpdateHomeAddress ( EmployeeId id, Address homeAddress ) : void
id Payroll.Domain.Model.EmployeeId
homeAddress Payroll.Domain.Model.Address
return void