public void A_Null_Object_Caching_Adapter_Will_Prevent_Any_Data_Caching() { MockProductRepository mockProductRepository = new MockProductRepository(); NullObjectCachingAdapter nullObjectCachingAdapter = new NullObjectCachingAdapter(); int categoryId = 1; ProductService productService = new ProductService(mockProductRepository, nullObjectCachingAdapter); productService.GetAllProductsIn(categoryId); Assert.AreEqual(1, mockProductRepository.NumberOfTimesCalled()); productService.GetAllProductsIn(categoryId); Assert.AreEqual(2, mockProductRepository.NumberOfTimesCalled()); }