Пример #1
0
        public void TestFull()
        {
            var container = new UnityContainer();

            DI.Startup.Configuration(container);
            IHandler <DomainNotification> notifications = DomainEvent.Container.GetService <IHandler <DomainNotification> >();

            Genre genre = new Genre()
            {
                Id          = 0,
                Description = "Rock"
            };

            IGenreAppService service = container.Resolve <IGenreAppService>();

            service.Save(genre);

            if (notifications.HasNotifications())
            {
            }
            else
            {
            }
        }
 public StoreController(IGenreAppService genreAppService, IAlbumAppService albumAppService)
 {
     _genreAppService = genreAppService;
     _albumAppService = albumAppService;
 }
 public StoreManagerController(IAlbumAppService albumAppService, IArtistAppService artistAppService, IGenreAppService genreAppService)
 {
     _albumAppService = albumAppService;
     _artistAppService = artistAppService;
     _genreAppService = genreAppService;
 }
Пример #4
0
 public StoreManagerController(IAlbumAppService albumAppService, IArtistAppService artistAppService, IGenreAppService genreAppService)
 {
     _albumAppService  = albumAppService;
     _artistAppService = artistAppService;
     _genreAppService  = genreAppService;
 }
Пример #5
0
 public StoreController(IGenreAppService genreAppService, IAlbumAppService albumAppService)
 {
     _genreAppService = genreAppService;
     _albumAppService = albumAppService;
 }