public void Ctor_NullAccessorFactory_ShouldThrowException()
        {
            // Arrange
            _accessorFactory = null;

            // Act
            _sut = new StateInstanceAccessor(_target, _storage, _accessorFactory);
        }
        public void Init()
        {
            _fixture = new Fixture().Customize(new AutoRhinoMockCustomization());
            _storage = _fixture.Create<IStateStorage>();
            _target = _fixture.Create<object>();
            var targetIdentity = RuntimeHelpers.GetHashCode(_target);
            _storage.Stub(x => x.GetStorage(targetIdentity)).Return(new Dictionary<string, object>());

            _accessorFactory = _fixture.Create<IStateAccessorFactory>();

            _sut = new StateInstanceAccessor(_target, _storage, _accessorFactory);
        }