Example #1
0
        public void TestSave()
        {
            //setup
            _mockConfiguration.Setup(c => c.LocalStoragePath).Returns(DevPath);
            var store = new DiskStore(_mockConfiguration.Object);
            var licenseDoc = TestLicense.Load("LicenseGood.xml");

            //act
            store.Save(licenseDoc);

            //verify
            Assert.IsTrue(File.Exists(DevPath));
        }
Example #2
0
        public void TestSave_NullArg()
        {
            //setup
            _mockConfiguration.Setup(c => c.LocalStoragePath).Returns(DevPath);
            var store = new DiskStore(_mockConfiguration.Object);

            //act
            store.Save(null);
        }