Esempio n. 1
0
        public void SuccessSignIn()
        {
            // Preparation
            ToSignUpBtn.Click();

            Window.Get <TextBox>("Name").Enter("Name");
            Window.Get <TextBox>("Surname").Enter("Surname");
            Window.Get <TextBox>("Email").Enter("[email protected]");
            Window.Get <TextBox>("Login").Enter(Login);
            Window.Get <TextBox>("Password").Enter("Password");

            Window.Get <Button>("SignUp").Click();

            SignOutBtn.Should().NotBe(null);
            SignOutBtn.Click();

            // Action
            EnterCredentials();

            SignInBtn.Click();

            // At the Main window
            SignOutBtn.Should().NotBe(null);
            SignOutBtn.Click();

            // Cleanup
            SerializationManager.ClearSerializedUsers();
        }
Esempio n. 2
0
        public SignInTest()
        {
            var path = Assembly.GetExecutingAssembly().CodeBase.Replace("#", "%23");

            Window = Application.Launch(new Uri(path).LocalPath).GetWindow("Alarm clock");

            SerializationManager.ClearSerializedUsers();
            SerializationManager.ClearSerializedLastUser();
        }
Esempio n. 3
0
        public void SuccessSignUp()
        {
            SignUp();

            // At the Main window
            SignOutBtn.Should().NotBe(null);
            SignOutBtn.Click();

            // Cleanup
            SerializationManager.ClearSerializedUsers();
        }