public InMemoryWishListTest()
        {
            _systemClockMock = new Mock <ISystemClock>();
            _options         = new InMemoryWishListOptions
            {
                SystemClock         = _systemClockMock.Object,
                ExpirationInSeconds = 30
            };
#if TEST_InMemoryWishListRefactored
            sut = new InMemoryWishListRefactored(_options);
#else
            sut = new InMemoryWishList(_options);
#endif
        }
예제 #2
0
 public InMemoryWishListRefactored(InMemoryWishListOptions options)
 {
     _options = options ?? throw new ArgumentNullException(nameof(options));
     _items   = new Dictionary <string, InternalItem>();
 }