示例#1
0
        protected override void Context()
        {
            _eventPublisher     = A.Fake <IEventPublisher>();
            _favoriteRepository = A.Fake <IFavoriteRepository>();
            _entityPathResolver = A.Fake <IEntityPathResolver>();
            _serializationTask  = A.Fake <ISerializationTask>();
            _dialogCreator      = A.Fake <IDialogCreator>();

            sut = new FavoriteTask(_favoriteRepository, _entityPathResolver, _eventPublisher, _dialogCreator, _serializationTask);

            _favorites = new Favorites();
            A.CallTo(() => _favoriteRepository.Favorites).Returns(_favorites);
        }