public IncidentsGridViewCellFormatter(ICfaRegions cfaRegions, IFormatterListener listener, IClock clock) { this.cfaRegions = cfaRegions; this.listener = listener; this.clock = clock; cfaRegions.AddListener(this); }
protected override void SetUp() { persistenceService = NewMock <IPersistenceService>(); Expect.Once.On(persistenceService).Method("RegisterScope").WithAnyArguments(); regions = new CfaRegions(persistenceService); }
protected override void SetUp() { persistenceService = NewMock<IPersistenceService>(); Expect.Once.On(persistenceService).Method("RegisterScope").WithAnyArguments(); regions = new CfaRegions(persistenceService); }
public RegionsComboBoxController(IComboBox comboBox, ICfaRegions cfaRegions) { this.comboBox = comboBox; this.cfaRegions = cfaRegions; comboBox.MaxDropDownItems = 25; comboBox.Sorted = false; comboBox.DropDownStyle = ComboBoxStyle.DropDownList; comboBox.DataSource = cfaRegions; }