Exemplo n.º 1
0
        private void UpdatePhoto()
        {
            Mapper mapper = new Mapper();

            if (SelectedObject != Guid.Empty)
            {
                Detail.Album = mapper.MapAlbumDetailModelToAlbumEntity(albumRepository.FindById(SelectedObject));
                var album = albumRepository.FindById(SelectedObject);
                album.Photos.Add(mapper.MapPhotoDetailModelToPhotoEntity(Detail));
            }
            Detail.Note = PoznamkaInput;
            photoRepository.Update(Detail);
            Detail = photoRepository.FindById(Detail.Id);
            OnLoad();
        }
Exemplo n.º 2
0
 private void SelectedAlbum(SelectedAlbumMessage message)
 {
     Detail = albumRepository.FindById(message.Id);
 }
Exemplo n.º 3
0
        public void AlbumFindById_NotNull()
        {
            var album = albumRepositorySUT.FindById(new Guid("92f40210-f3f5-4605-83b5-cf7c93889c4b"));

            Assert.NotNull(album);
        }