public Tissue2DFactory(ICellFactory cellFactory, IGermFactory germFactory, IShuffle shuffler) { _tissue = ImmutableDictionary <Location, ICell> .Empty; _cellFactory = cellFactory ?? throw new ArgumentNullException(nameof(cellFactory)); _germFactory = germFactory ?? throw new ArgumentNullException(nameof(germFactory)); _shuffler = shuffler ?? throw new ArgumentNullException(nameof(shuffler)); }
public NullInfectionPropagation(IGermFactory germFactory, EventAggregator eventAggregator) { //null implementation }
public RandomInfectionPropagation(IGermFactory germFactory, EventAggregator eventAggregator) { _germFactory = germFactory; _eventAggregator = eventAggregator; _eventAggregator.Subscribe(this); }