示例#1
0
        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());
        }
示例#2
0
 protected void ClearData()
 {
     CitiesRepository.Clear();
     ZipCodesRepository.Clear();
 }