public virtual Employee CreateEmployee(string myName, string userName, string emailAddress, Currency currency) { var emp = Container.NewTransientInstance<Employee>(); emp.Name = myName; emp.UserName = userName; emp.EmailAddress = emailAddress; emp.Currency = currency; Container.Persist(ref emp); return emp; }
public void Install() { EUR = CreateCurrency("EUR", "Euro Member Countries", "Euro"); GBP = CreateCurrency("GBP", "United Kingdom", "Pounds"); USD = CreateCurrency("USD", "United States of America", "Dollars"); }
public void ChangeCurrency(Currency newCurrency) { Employee.Currency = newCurrency; }