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
namespace Demo.Repository.Specifications | |
{ | |
public class IssueByNameSpecification : Specification<Issue> | |
{ | |
private readonly string key; | |
public IssueByNameSpecification(string key) | |
{ | |
this.key = key; | |
} |
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
namespace Demo.Repository.Infrastructure | |
{ | |
public class ApplicationContext : DbContext | |
{ | |
public readonly FrameLogModule<ChangeSet, Person> Logger; | |
public ApplicationContext() : base("name=Demo") | |
{ | |
Configuration.ProxyCreationEnabled = false; | |
Database.Initialize(true); |
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
namespace Demo.Repository.Models | |
{ | |
public class Country : Lookup | |
{ | |
/// <summary> | |
/// Gets or sets the issues that link to this. | |
/// </summary> | |
/// <remarks>This may be referenced by many issues.</remarks> | |
public ICollection<Issue> Issues { get; set; } | |
} |
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
namespace Demo.Notification | |
{ | |
using System.Net.Mail; | |
public class EmailService : IEmailService | |
{ | |
public void Notify(NotificationDto notification) | |
{ | |
var msg = new MailMessage | |
{ |
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
namespace Demo.Ldap.Configuration | |
{ | |
public LdapConfig(bool enabled, string user, string password, string domain) | |
{ | |
this.Enabled = enabled; | |
this.User = user; | |
this.Password = password; | |
this.Domain = domain; | |
} |
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
namespace Website | |
{ | |
using System.IO; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
public class WebFormMvcUtil | |
{ | |
private static HtmlHelper html; |
NewerOlder