public void TestConstructorSetsNameAndSchema() { var toTest = new HierarchicalStoredProcedure <string>("tEst", "Proc", new[] { typeof(string) }); toTest.Name.Should().Be("Proc", "because it was passed in the constructor"); toTest.Schema.Should().Be("tEst", "because it was passed in the constructor"); }
public void TestConstructorSetsNameAndDefaultSchema() { var toTest = new HierarchicalStoredProcedure <string>("TestProc", new [] { typeof(string) }); toTest.Name.Should().Be("TestProc", "because it was passed in the constructor"); toTest.Schema.Should().Be("dbo", "because it is the default when not passed in the constructor"); }