Example #1
0
        public override void GetEntityById_EntityDoesExist_ReturnsEntity()
        {
            PersonTitleCreator.CreatePersonTitle(Context, out var person, out var title);

            var personTitle = PersonTitleQueries.GetPersonTitleByAllIds(Context, title.IdTitle, person.IdPerson);

            Assert.IsNotNull(personTitle);
            Assert.AreEqual(person, personTitle.PersonTitlePerson);
            Assert.AreEqual(title, personTitle.PersonTitleTitle);
        }
Example #2
0
 public override void GetEntityById_EntityDoesNotExist_ReturnsNull()
 {
     Assert.IsNull(PersonTitleQueries.GetPersonTitleByAllIds(Context, -1, -1));
 }