示例#1
0
        public void TestSaveContractorProfile()
        {
            Repository.SaveNewContractorProfile(ContractorProfile);
            ContractorProfile savedContractorProfile = Repository.FindContractorProfile(ContractorAccountEmail);

            Assert.NotNull(savedContractorProfile);
        }
        private void CreateContractorProfile(ContractorAccount contractorAccount)
        {
            ContractorProfile ContractorProfile = new ContractorProfile
            {
                EmailAddress = contractorAccount.EmailAddress,
                FirstName    = contractorAccount.FirstName,
                LastName     = contractorAccount.LastName
            };

            ContractorProfileRepository.SaveNewContractorProfile(ContractorProfile);
        }