Skip to content

Instantly share code, notes, and snippets.

@efleming969
Last active August 29, 2015 14:25
Show Gist options
  • Save efleming969/eef8371add997f0ffca0 to your computer and use it in GitHub Desktop.
Save efleming969/eef8371add997f0ffca0 to your computer and use it in GitHub Desktop.
public interface IPay
{
decimal CalculatePay( Employee currentEmployee );
void SendToBigBallerAccount();
}
public class BigBallerPay : IPay
{
public decimal CalculatePay( Employee currentEmployee )
{
return currentEmployee.PayRate * currentEmployee.Hours * 1000;
}
public void SendToBigBallerAccount()
{
}
}
public class FTEPay : IPay
{
public decimal CalculatePay( Employee currentEmployee )
{
return currentEmployee.PayRate * currentEmployee.Hours;
}
public void SendToBigBallerAccount()
{
throw new System.NotImplementedException();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment