Пример #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());
 }