public void ChangeCalcLogics(IPointsCalculations obj) { if (obj == null) { calculator = obj; } }
public AccountService(AccountTypeService service, IPointsCalculations obj) { if (service == null || obj == null) { throw new ArgumentNullException(); } accounts = new List <Account>(); typeService = service; calculator = obj; }