示例#1
0
 public void DataStoreFalseDuplicateTest()
 {
     this.CreateDataFile();
     DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value
     bool actual = target.DataStore.HasDuplicate(new TestSubject() { Email = "@@@" });
     Assert.IsTrue(actual);
 }
示例#2
0
 public void DataStoreCountTest()
 {
     this.CreateDataFile();
     DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value
     int actual = target.DataStore.GetData(new PageOptions()).Total;
     Assert.IsTrue(actual > 0);
 }
示例#3
0
        public void DataStoreAddSubjectTestSuccess()
        {
            this.CreateDataFile();
            DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value
            target.DataStore.AddSubject(new TestSubject() { FirstName = "m.", LastName = "mathers", Email = "test@test", Password = "******" });

            int newCount = target.DataStore.GetData(new PageOptions()).Total;
            Assert.IsTrue(newCount > 1);
        }
示例#4
0
 public void DataStoreTest()
 {
     this.CreateDataFile();
     DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value
     IDataStore actual;
     actual = target.DataStore;
     Assert.IsNotNull(target.DataStore);
 }
示例#5
0
 public void DataStoreFactoryConstructorTest()
 {
     this.CreateDataFile();
     DataStoreFactory target = new DataStoreFactory();
     Assert.IsNotNull(target);
 }
示例#6
0
 public void DataStoreAddSubjectTestFail()
 {
     this.CreateDataFile();
     DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value
     target.DataStore.AddSubject(new TestSubject());
 }