public void AddBegrip_ValidBegrip_LengthShouldIncreaseByOne()
        {
            var cmp = new BegrippenComposer ();

            cmp.AddBegrip (new Begrip(1, "Naam"));
            cmp.Count.ShouldBe (1);
        }
        public void AddBegrip_EmptyBegrip_LengthStaysTheSame()
        {
            var cmp = new BegrippenComposer ();

            cmp.AddBegrip (null);
            cmp.Count.ShouldBe (0);
        }
        public void AddBegrip_ExistingBegrip_Throws()
        {
            var cmp = new BegrippenComposer ();
            var begrip1 = new Begrip(1, "Naam");
            var begrip2 = new Begrip(1, "Naam");

            cmp.AddBegrip(begrip1);
            Should.Throw<BegrippenComposer.BegripAlreadyPresent>(() => cmp.AddBegrip(begrip2));
        }
        public void AddGebaar_ForExistingBegrip_AddsDataToIt()
        {
            var cmp = new BegrippenComposer();
            var begrip = new Begrip(1, "Naam");
            cmp.AddBegrip(begrip);

            var gebaar = new Gebaar { ID=1, BegripID = 1, FilmID = 1 };
            cmp.AddGebaar(gebaar);

            cmp.BegripByKey(1).Film.ID.ShouldBe(1);
        }
 public void FindBegrip_NonExistingBegrip_ReturnsNull()
 {
     var cmp = new BegrippenComposer();
     cmp.BegripByKey(1).Equals(Begrip.NULL).ShouldBe(true);
 }