Beispiel #1
0
    public void AddCardToGallery_Test()
    {
        //Given
        IGalleryData galleryDb   = new GalleryData();
        var          galleryCard = new GalleryCard()
        {
            Id          = 4,
            Title       = "The Return Of The Thing",
            Descritpion = "A film about the return of the thing."
        };

        GalleryData.Current.Cards.Add(galleryCard);
        var cards = GalleryData.Current.getAllCards();

        //When
        foreach (var card in cards)
        {
            output.WriteLine("ID:{0}", card.Id);
        }
        //Then
    }
Beispiel #2
0
 public GalleryItem(GalleryCard card)
 {
     Card = card;
 }
Beispiel #3
0
 public void AddGalleryCard(GalleryCard galleryCard)
 {
     GalleryData.Current.Cards.Add(galleryCard);
 }