public void Initialize_4_Sets_Command_Instance() { var instance = new SqlCommandWrap(); var mockConnWrap = _mockRepository.Stub<ISqlConnection>(); instance.Initialize("command text string", mockConnWrap); Assert.IsNotNull(instance.SqlCommandInstance); }
public void Initialize_2_Sets_Command_Instance() { var instance = new SqlCommandWrap(); var newCmd = new SqlCommand(); instance.Initialize(newCmd); Assert.AreSame(newCmd, instance.SqlCommandInstance); }
public void Initialize_3_Sets_Command_Instance() { var instance = new SqlCommandWrap(); instance.Initialize("command text string"); Assert.IsNotNull(instance.SqlCommandInstance); }