public void Dispose_CacheDisposeIsCalled() { var cacheMock = new Mock <ICache <object> >(); var sut = new CacheAdapter(cacheMock.Object); sut.Dispose(); cacheMock.Verify(x => x.Dispose(), Times.Once); }
public void Dispose_CacheDisposeIsCalled() { var cacheMock = new Mock <ICache <string> >(); var cacheMock2 = new Mock <ICache <StoredHttpResponseMessage> >(); var sut = new CacheAdapter(cacheMock.Object, cacheMock2.Object); sut.Dispose(); cacheMock.Verify(x => x.Dispose(), Times.Once); }