Ejemplo n.º 1
0
        public async Task <int> DoStandardEnrollmentReturnOwnerCollectionRestClient(EnrollmentParameters iep)
        {
            int             ownerId = 0;
            QALibRestClient qalib   = new QALibRestClient();

            ownerId = await qalib.EnrollSingleOwner(iep);

            if (ownerId == 0)
            {
                throw new ApplicationException("Created Owner Id is 0");
            }

            Trace.WriteLine($"Email address: {iep.EMailAddress}");
            return(ownerId);
        }
Ejemplo n.º 2
0
        //protected ITestDataManager TestDataManager
        //{
        //    get
        //    {
        //        return testDataManager;
        //    }
        //}

        public void InitTestClass()
        {
            try
            {
                ServiceFactory.InitializeServiceFactory(new ContainerConfiguration(ApplicationProfileType.TestFramework));
                testDataManager = IocContainer.Resolve <ITestDataManager>();

                serializer = ServiceFactory.Instance.Create <IJsonSerialization>();

                qaLibRestClient         = new QALibRestClient();
                ownerCollection         = new OwnerCollection();
                accountExpected         = new Account();
                accountExpected.AutoPay = true;

                random = new Random();
            }
            catch (Exception ex)
            {
                BillingTestCommon.log.Fatal(ex);
            }
            Assert.IsNotNull(testDataManager);
        }