public void FallsBackToNamespaceForTypeSettings() { var reader = new ConfigurationFileCommandReader(); var result = reader.GetCommand(typeof(TypeA), "FallsBackToNamespace"); NotNull(result); Equal("select 'TypeA';", result.CommandText); }
public void Successfully() { var reader = new ConfigurationFileCommandReader(); var result = reader.GetCommand(typeof(GetCommand), "ExplicitKey"); // assert values Equal("select @Id [Result]", result.CommandText); Equal("TestId", result.Split); Equal(IsolationLevel.ReadCommitted, result.IsolationLevel); NotNull(result); }
public void UnknownKeyThrowsArgumentNullException() { var reader = new ConfigurationFileCommandReader(); var result = Throws <ArgumentNullException>(() => reader.GetCommand(typeof(GetCommand), "Unknown")); }
public void NullKeyArgumentThrowsArgumentNullException() { var reader = new ConfigurationFileCommandReader(); var result = Throws <ArgumentNullException>(() => reader.GetCommand(typeof(GetCommand), null)); }
public void UnknownTypeThrowsArgumentNullException() { var reader = new ConfigurationFileCommandReader(); var result = Throws <ArgumentNullException>(() => reader.GetCommand(typeof(ConfigurationFileCommandReader), "ExplicitKey")); }
public void NullTypeArgumentThrowsArgumentNullException() { var reader = new ConfigurationFileCommandReader(); var result = Throws <ArgumentNullException>(() => reader.GetCommand(null, "ExplicitKey")); }