private void OnDatabaseConnected(object sender, EventArgs eventArgs) { var eids = _database.FindAllEids(); _mostlyFullSequence.Clear(); _mostlyFullSequence.InsertMultiple(eids); }
public void OnDatabaseConnected_MakesCorrectCalls() { var eids = new List <int>() { 1, 2 }; A.CallTo(() => _database.FindAllEids()).Returns(eids); _database.Connected += Raise.With(EventArgs.Empty); A.CallTo(() => _database.FindAllEids()).MustHaveHappened(); A.CallTo(() => _mostlyFullSequence.Clear()).MustHaveHappened(). Then(A.CallTo(() => _mostlyFullSequence.InsertMultiple(eids)).MustHaveHappened()); }