Example #1
0
        public async Task GetRelationPersonPlayJobId_Should_ReturnRelation()
        {
            RelationPersonPlayJob r = await DAL.GetRelationPersonPlayJob(2);

            Assert.IsNotNull(r);
            Assert.AreEqual(73, r.PersonId);
        }
Example #2
0
 public static PersonFunctionDTO FromJobEntity(RelationPersonPlayJob relation)
 {
     return(new PersonFunctionDTO()
     {
         PersonId = relation.PersonId,
         FirstName = relation.Person.FirstName,
         LastName = relation.Person.LastName,
         Role = relation.Job.JobTitle
     });
 }
Example #3
0
        public async Task AddRelationPersonPlayJob_Should_ReturnSameAddRelation()
        {
            var rel = new RelationPersonPlayJob {
                PersonId = 43, PlayId = 13, JobId = 16, EditedBy = 2, EditDate = new DateTime(2011, 6, 10)
            };
            await DAL.AddRelationPersonPlayJob(rel);

            RelationPersonPlayJob relation = await DAL.GetRelationPersonPlayJob(125);

            Assert.IsNotNull(relation);
            Assert.IsTrue(relation.Equals(rel));
        }
Example #4
0
        public async Task UpdateRelationPersonPlayJob_Should_ReturnDifferentRelationPersonPlayJob()
        {
            RelationPersonPlayJob rel1 = await DAL.GetRelationPersonPlayJob(8);

            RelationPersonPlayJob rel2 = new RelationPersonPlayJob(rel1);

            rel1.PlayId = 10;
            await DAL.UpdateRelationPersonPlayJob(rel1);

            RelationPersonPlayJob rel3 = await DAL.GetRelationPersonPlayJob(rel1.RelationPersonPlayJobId);

            Assert.IsFalse(rel3.Equals(rel2));
            Assert.AreNotEqual(rel1.PlayId, rel2.PlayId);
        }
 public RelationPersonPlayJob UpdateRelationPersonPlayJob(RelationPersonPlayJob updateData)
 {
     throw new NotImplementedException();
 }
 public RelationPersonPlayJob AddRelationPersonPlayJob(RelationPersonPlayJob newRelationPersonPlayJob)
 {
     throw new NotImplementedException();
 }