public void Clear_CallsDataStore() { // arrange var dataStoreMock = new Mock <IDataStore>(MockBehavior.Loose); var repository = new CitiesRepository( dataStoreMock.Object ); // act repository.Clear(); // assert dataStoreMock.Verify(mock => mock.ClearAll <CityModel>(), Times.Once()); }
protected void ClearData() { CitiesRepository.Clear(); ZipCodesRepository.Clear(); }