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); }
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); }
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); }
public void DataStoreTest() { this.CreateDataFile(); DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value IDataStore actual; actual = target.DataStore; Assert.IsNotNull(target.DataStore); }
public void DataStoreFactoryConstructorTest() { this.CreateDataFile(); DataStoreFactory target = new DataStoreFactory(); Assert.IsNotNull(target); }
public void DataStoreAddSubjectTestFail() { this.CreateDataFile(); DataStoreFactory target = new DataStoreFactory(); // TODO: Initialize to an appropriate value target.DataStore.AddSubject(new TestSubject()); }