public void GivenThatHouseHasNoOverlord_WhenAccessingAdapterOverlord_ThenNullIsReturned()
        {
            var entity = new HouseEntity();

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNull(adapter.Overlord);
        }
        public void GivenThatHouseHasNoFounder_WhenAccessingAdapterFounder_ThenNullIsReturned()
        {
            var entity = new HouseEntity();

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNull(adapter.Founder);
        }
        public void GivenThatHouseHasName_WhenAccessingAdapterName_ThenAdapterNameIsSame()
        {
            var entity = new HouseEntity {
                Name = "name"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Name, adapter.Name);
        }
        public void GivenThatHouseHasFoundedData_WhenAccessingAdapterFounded_ThenAdapterFoundedIsSame()
        {
            var entity = new HouseEntity {
                Founded = "founded"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Founded, adapter.Founded);
        }
        public void GivenThatHouseHasOneSeat_WhenAccessingAdapterSeats_ThenAdapterSeatsContainsOne()
        {
            var entity = new HouseEntity {
                Seats = new[] { "seat" }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Seats.Length, adapter.Seats.Count);
        }
        public void GivenThatHouseHasDiedOutData_WhenAccessingAdapterDiedOut_ThenAdapterDiedOutIsSame()
        {
            var entity = new HouseEntity {
                DiedOut = "Year one"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.DiedOut, adapter.DiedOut);
        }
        public void GivenThatHouseHasWords_WhenAccessingAdapterWords_ThenAdapterWordsIsSame()
        {
            var entity = new HouseEntity {
                Words = "words"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Words, adapter.Words);
        }
        public void GivenThatHouseHasOneTitle_WhenAccessingAdapterTitles_ThenAdapterTitlesContainsOne()
        {
            var entity = new HouseEntity {
                Titles = new[] { "titleOne" }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Titles.Length, adapter.Titles.Count);
        }
        public void GivenThatHouseHasRegion_WhenAccessingAdapterRegion_ThenAdapterRegionIsSame()
        {
            var entity = new HouseEntity {
                Region = "region"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.Region, adapter.Region);
        }
        public void GivenThatHouseHasCoatOfArms_WhenAccessingAdapterCoatOfArms_ThenAdapterCoatOfArmsIsSame()
        {
            var entity = new HouseEntity {
                CoatOfArms = "coat of arms"
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.CoatOfArms, adapter.CoatOfArms);
        }
        public void GivenThatHouseHasOneAncestralWeapon_WhenAccessingAdapterAncestralWeapons_ThenAdapterAncestralWeaponsAreTheSame()
        {
            var entity = new HouseEntity {
                AncestralWeapons = new[] { "Old Sword" }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.AncestralWeapons.Length, adapter.AncestralWeapons.Count);
        }
        public void GivenThatHouseHasOneSwornMember_WhenAccessingAdapterSwornMembers_ThenAdapterHasOneSwornMember()
        {
            var entity = new HouseEntity {
                SwornMembers = new List <CharacterEntity> {
                    new CharacterEntity()
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.SwornMembers.Count, adapter.SwornMembers.Count);
        }
        public void GivenThatHouseHasOneCadetBranch_WhenAccessingAdapterCadetBranches_ThenAdapterHasOneCadetBranch()
        {
            var entity = new HouseEntity {
                CadetBranches = new List <HouseEntity> {
                    new HouseEntity()
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.AreEqual(entity.CadetBranches.Count, adapter.CadetBranches.Count);
        }
        public void GivenThatHouseHasCurrentLord_WhenAccessingAdapterCurrentLord_ThenAdapterCurrentLordHasData()
        {
            var entity = new HouseEntity {
                CurrentLord = new CharacterEntity {
                    Name = "currentLordName"
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNotNull(adapter.CurrentLord);
            Assert.AreEqual(entity.CurrentLord.Name, adapter.CurrentLord.Name);
        }
        public void GivenThatHouseHasOverlord_WhenAccessingAdapterOverlord_ThenAdapterOverlordHasData()
        {
            var entity = new HouseEntity {
                Overlord = new HouseEntity {
                    Name = "overlordName"
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNotNull(adapter.Overlord);
            Assert.AreEqual(entity.Overlord.Name, adapter.Overlord.Name);
        }
        public void GivenThatHouseHasHeir_WhenAccessingAdapterHeir_ThenAdapterHeirHasData()
        {
            var entity = new HouseEntity {
                Heir = new CharacterEntity {
                    Name = "heirName"
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNotNull(adapter.Heir);
            Assert.AreEqual(entity.Heir.Name, adapter.Heir.Name);
        }
        public void GivenThatHouseHasFounder_WhenAccessingAdapterFounder_ThenAdapterFounderHasData()
        {
            var entity = new HouseEntity {
                Founder = new CharacterEntity()
                {
                    Name = "founderName"
                }
            };

            var adapter = new HouseEntityAdapter(entity);

            Assert.IsNotNull(adapter.Founder);
            Assert.AreEqual(entity.Founder.Name, adapter.Founder.Name);
        }