Reformat and apply Stylecop rules

This commit is contained in:
ta264
2019-12-22 22:08:53 +00:00
committed by Qstick
parent d4fa9b7345
commit f02fa629cc
1186 changed files with 7105 additions and 5616 deletions
@@ -11,7 +11,8 @@ namespace NzbDrone.Core.Test.Framework
public interface IDirectDataMapper
{
List<Dictionary<string, object>> Query(string sql);
List<T> Query<T>(string sql) where T : new();
List<T> Query<T>(string sql)
where T : new();
}
public class DirectDataMapper : IDirectDataMapper
@@ -55,7 +56,8 @@ namespace NzbDrone.Core.Test.Framework
return dataTable.Rows.Cast<DataRow>().Select(MapToDictionary).ToList();
}
public List<T> Query<T>(string sql) where T : new()
public List<T> Query<T>(string sql)
where T : new()
{
var dataTable = GetDataTable(sql);
@@ -86,7 +88,8 @@ namespace NzbDrone.Core.Test.Framework
return item;
}
protected T MapToObject<T>(DataRow dataRow) where T : new()
protected T MapToObject<T>(DataRow dataRow)
where T : new()
{
var item = new T();