Beispiel #1
0
        public void CreateOrganisationContactThatDoesntExistAndCheckItIsThere()
        {
            var isContactPresentBeforeInsert =
                _validationRepository.ContactIdIsValidForOrganisationId(_contactId, _contact.EndPointAssessorOrganisationId).Result;
            var returnedContactId          = _repository.CreateEpaOrganisationContact(_contact).Result;
            var isContactPresenAfterInsert =
                _validationRepository.ContactIdIsValidForOrganisationId(_contactId, _contact.EndPointAssessorOrganisationId).Result;

            Assert.IsFalse(isContactPresentBeforeInsert);
            Assert.IsTrue(isContactPresenAfterInsert);
            Assert.AreEqual(returnedContactId, _contactId.ToString());
        }