//Action<IProductOptions> optionalParams) public GermanyCar CreateNewGermanyCar(string brand,string name, int engineVol, int tankVol, string bodyType, string countryOfOrigin, int percentOfPrestige) { var germanyCar = new GermanyCar(brand,name, engineVol, tankVol, bodyType, countryOfOrigin, percentOfPrestige); OnGermanyCarCreation(germanyCar); return germanyCar; }
public void OnGermanyCarCreation(GermanyCar germanyCar) { _notifyUsersAction.Notify(germanyCar); }