private void IfTheCallsIs(Action <RecordingAssetRegistration> configure)
        {
            var registration = new RecordingAssetRegistration();

            configure(registration);

            registration.Replay(theUnderlyingRegistration);
        }
Exemple #2
0
        public AssetsExpression(FubuRegistry registry)
        {
            _registry = registry;

            // TODO -- end to end tests here
            _registration = new Lazy <IAssetRegistration>(() =>
            {
                var recording = new RecordingAssetRegistration();
                _registry.Services(x => x.AddService <IAssetPolicy>(recording));

                return(recording);
            });
        }