Exemplo n.º 1
0
        public ShowService( IShowRepository showRepository,
                            ISetRepository setRepository,
                            ISetSongRepository setSongRepository )
        {
            Checks.Argument.IsNotNull( showRepository, "showRepository" );
            Checks.Argument.IsNotNull( setRepository, "setRepository" );
            Checks.Argument.IsNotNull( setSongRepository, "setSongRepository" );

            _ShowRepository = showRepository;
            _SetRepository = setRepository;
            _SetSongRepository = setSongRepository;
        }
Exemplo n.º 2
0
        public SetlistsController(  IBandRepository bandRepository, 
                                    ISetlistRepository setlistRepository,
                                    ISetSongRepository setSongRepository,
                                    ISongRepository songRepository,
                                    IGigRepository gigRepository, 
                                    IAccount account, 
                                    IValidationRules validationRules)
        {
            var currentUserName = GetCurrentSessionUser();
            _currentUser = (currentUserName.Length > 0) ? account.GetUserByUserName(currentUserName) : null;

            _bandRepository = bandRepository;
            _setlistRepository = setlistRepository;
            _setSongRepository = setSongRepository;
            _songRepository = songRepository;
            _gigRepository = gigRepository;
            _validationRules = validationRules;
            _common = new CommonSong(account, currentUserName);
        }
Exemplo n.º 3
0
 public SetSongService(ISetSongRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }
Exemplo n.º 4
0
 public SetSongService(ISetSongRepository repo)
 {
     Checks.Argument.IsNotNull(repo, "repo");
     _repo = repo;
 }