public void Constructor_StateSet_Again() { RepositoryContextAttribute att = new RepositoryContextAttribute(DataLayerState.Testing, typeof(int)); Assert.AreEqual(DataLayerState.Testing, att.State, "The State Property of the attribute was not set correctly."); }
public void Constructor_RepositoryTypeSet_Again() { RepositoryContextAttribute att = new RepositoryContextAttribute(DataLayerState.Live, typeof(int)); Assert.AreEqual(typeof(int), att.RepositoryType, "The RepositoryType property of the attribute was not set correctly."); }