mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-25 22:59:10 -04:00
Reformat and apply Stylecop rules
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user