public void Constructor_WhenValueIsCached_ParsesTheValueIntoAnInt()
        {
            // Arrange
            _keyDataStore.GetValue(_key)
                .Returns("1");

            // Act
            _viewModel = new IntCachedPropertyDecorator(_keyDataStore, _key);

            // Assert
            Assert.Equal(1, _viewModel.Value);
        }
 public IntCachedPropertyViewModelTests()
 {
     _keyDataStore = Substitute.For<IKeyDataStore>();
     _key = @"C:\Folder\TV Shows\Adventure Time\Season 1\1x01.mkv?episodeNumber";
     _viewModel = new IntCachedPropertyDecorator(_keyDataStore, _key);
 }