public void RegisterTest()
        {
            // Assign
            var person = DataGenerator.GeneratePerson();

            // Act
            HeaderLogic.GoToSignUp();
            AuthenticationLogic.GoToCreateAccount(person);
            CreateAccountLogic.CreateAccount(person);

            // Assert
            Assert.True(MyAccountLogic.IsSucces(), "Succes message not is displayed!");
        }
예제 #2
0
        public void ConfigureServices(IServiceCollection serviceColletion)
        {
            IHeaderLogic headerLogic = new HeaderLogic(Driver);

            serviceColletion.AddSingleton(headerLogic);

            IAuthenticationLogic authenticationLogic = new AuthenticationLogic(Driver);

            serviceColletion.AddSingleton(authenticationLogic);

            ICreateAccountLogic createAccountLogic = new CreateAccountLogic(Driver);

            serviceColletion.AddSingleton(createAccountLogic);

            IMyAccountLogic myAccountLogic = new MyAccountLogic(Driver);

            serviceColletion.AddSingleton(myAccountLogic);
        }
예제 #3
0
        private async Task CreateAccount()
        {
            // Arrange
            var accountLogic = new CreateAccountLogic();
            var accountModel = new CreateAccountModel
            {
                Name     = "Test User",
                Password = "******" + new Random().Next(),
                Email    = "*****@*****.**",
                Language = "de"
            };

            Debug.WriteLine(accountModel.Email);
            Debug.WriteLine(accountModel.Password);

            // Act
            _token = await accountLogic.GetApprovedAccountToken(accountModel);

            var request     = $"https://app.inlooxnow.com/odata/projectview?{ParameterHelper.GetTokenParameter(_token)}";
            var projectList = await new HttpTestClient().Get(request);

            // Assert
            Assert.IsTrue(projectList.Contains("InLoox Testphase"), $"Test account not created correctly, message: {projectList}");
        }