예제 #1
0
        public void SetUp()
        {
            TestAccount1 = new Account
            {
                refreshToken = "bla",
                token        = "bla",
                serverInfo   = new ServerInfo
                {
                    url     = "bla",
                    company = "bla"
                },
                userInfo = new UserInfo
                {
                    email = "*****@*****.**"
                }
            };

            TestAccount2 = new Account
            {
                refreshToken = "foo",
                token        = "bar",
                serverInfo   = new ServerInfo
                {
                    url     = "baz",
                    company = "qux"
                },
                userInfo = new UserInfo
                {
                    email = "*****@*****.**"
                }
            };

            TestAccount3 = new Account
            {
                token      = "secret",
                serverInfo = new ServerInfo
                {
                    url  = "https://sample.com",
                    name = "qux"
                },
                userInfo = new UserInfo
                {
                    email = "*****@*****.**",
                    id    = "123345",
                    name  = "Test Account 3"
                }
            };



            Fixtures.UpdateOrSaveAccount(TestAccount1);
            Fixtures.UpdateOrSaveAccount(TestAccount2);
            Fixtures.SaveLocalAccount(TestAccount3);
        }