public void Instance_Is_TravelTypeConfiguration() { //Arrange var type = typeof(TravelTypeConfiguration <SomeEntityObject>); //Act var configuration = new SomeTravelTypeConfiguration("", ""); //Assert Assert.IsInstanceOf(type, configuration); }
public void Table() { //Arrange const string table = "SomeTableName"; //Act var con = new SomeTravelTypeConfiguration("", table); //Assert Assert.AreEqual(table, con.TableName); }
public void Name() { //Arrange const string schema = "SomeSchemaName"; //Act var configuration = new SomeTravelTypeConfiguration(schema, ""); //Assert Assert.AreEqual(schema, configuration.SchemaName); }
public void DefaultConstructor() { //Arrange const string schema = nameof(SomeNamespace); const string table = nameof(SomeEntityObject) + "s"; //Act var configuration = new SomeTravelTypeConfiguration(); //Assert Assert.Multiple(() => { Assert.AreEqual(schema, configuration.SchemaName); Assert.AreEqual(table, configuration.TableName); } ); }