Beispiel #1
0
        public void InitTestUser()
        {
            var facade = new ProfileApiFacade(
                Logger,
                Configuration.RootUrl);

            var testUser = new TestUserModel
            {
                Email    = Configuration.UserName,
                Password = Configuration.Password,
            };

            var response = facade.PostCreateNewProfile(testUser);

            if (response.StatusCode == HttpStatusCode.Conflict)
            {
                return;
            }
            if (response.StatusCode == HttpStatusCode.Created)
            {
                Assert.IsEmpty(ProfileHelper.CompareUserProfiles(testUser, response.Map <TestUserModel>()));
                return;
            }

            Assert.Fail("Test user was not created");
        }
Beispiel #2
0
        public void InitFacade()
        {
            // correct config
            Assert.AreEqual("*****@*****.**", Configuration.UserName);
            // todo bootstrap it later
            Facade = new ProfileApiFacade(
                Logger,
                Configuration.RootUrl);

            ProfileGivenExtension.Init(Configuration);
            ProfileWhenExtension.Init(Facade);
            ProfileThenExtension.Init(Facade);
        }
Beispiel #3
0
 public static void Init(TimeSeriesApiFacade facade, ProfileApiFacade profileApiFacade)
 {
     _facade           = facade;
     _profileApiFacade = profileApiFacade;
 }
 public static void Init(ProfileApiFacade facade)
 {
     _facade = facade;
 }