コード例 #1
0
        public void DefaultDBInitialized()
        {
            var profile = testRepo.GetEMProfileByName("New_User");

            Assert.AreEqual("New_User", profile.UserName);
            Assert.IsTrue(testRepo.ConfigureProfile());
        }
コード例 #2
0
        public void CreateNonExistingDB()
        {
            var repo = new EntertainMeRepository(testPath, testDBName);

            Assert.True(File.Exists(testPath + testDBName));
            var profile = repo.GetEMProfileByName("New_User");

            Assert.AreEqual("New_User", profile.UserName);
            repo.Dispose();
            if (File.Exists(testPath + testDBName))
            {
                File.Delete(testPath + testDBName);
            }
            if (Directory.Exists(testPath))
            {
                Directory.Delete(testPath, true);
            }
        }