コード例 #1
0
        public void TestAddAccount()
        {
            OptionService service = GetService();

            var account1 = service.AddAccount("account1", "*****@*****.**");
            var appl1    = service.GetAccounts().FirstOrDefault(c => c.Id == account1.Id);

            Assert.AreEqual(appl1, account1);
            service.RemoveAccount(account1);
            var srv = service.GetAccounts().FirstOrDefault(c => c.Id == account1.Id);

            Assert.AreEqual(srv, null);
        }