This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class test | |
initialize: -> | |
$('.button').click -> | |
method | |
method: -> alert 'test' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*db.Blogs | |
.Include("Posts") | |
.Include("Posts.Comments") | |
.Where(x => x.Id == 1) | |
.ToList();*/ | |
SELECT [Project2].[Id] AS [Id], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class RepositoryFakes | |
{ | |
public static IRepository<T> AsRepository<T>(this IList<T> list) where T : Entity | |
{ | |
IQueryable<T> queryable = list.AsQueryable(); | |
return Mock.Of<IRepository<T>>(x => x.Expression == queryable.Expression | |
&& x.ElementType == queryable.ElementType | |
&& x.Provider == queryable.Provider); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static bool IsUnitTest | |
{ | |
get | |
{ | |
FileInfo fileInfo = new FileInfo(Process.GetCurrentProcess().MainModule.FileName); | |
return fileInfo.Name.StartsWith("vstesthost", StringComparison.OrdinalIgnoreCase) || fileInfo.Name.StartsWith("mstest", StringComparison.OrdinalIgnoreCase); | |
} | |
} |
NewerOlder