public void CreateParameterList_ArrayParameters_Test() { var paramArray = new TestDbParameter[5]; paramArray[0] = new TestDbParameter(); paramArray[1] = new TestDbParameter(); paramArray[2] = new TestDbParameter(); paramArray[3] = new TestDbParameter(); paramArray[4] = new TestDbParameter(); var paramList = DatabaseUtils.CreateParameterList(paramArray); paramList.Count.Should().Be(5); }
public void CreateParameterList_ArrayObjects_Test() { var objectArray = new object[5]; objectArray[0] = new object(); objectArray[1] = new object(); objectArray[2] = new object(); objectArray[3] = new object(); objectArray[4] = new object(); var paramList = DatabaseUtils.CreateParameterList <TestDbParameter>(objectArray); paramList.Count.Should().Be(5); }
public void CreateParameterList_IsNotNulls_Test() { var paramList = DatabaseUtils.CreateParameterList <TestDbParameter>(null); paramList.Count.Should().Be(0); }