This file contains 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 QueryTest.Domain.Contracts.Queries | |
{ | |
using SharpArch.Domain.PersistenceSupport; | |
public interface ISampleQuery : IQuery<Address> { } | |
} |
This file contains 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 class ProductViewModel | |
{ | |
public string Name { get; set; } | |
public int Id { get; set; } | |
public string CategoryName { get; set; } | |
} |
This file contains 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 YourProjectName.Here.NHibernateMaps.Conventions | |
{ | |
using System; | |
using System.ComponentModel.DataAnnotations; | |
using System.Linq; | |
using DataAnnotationsExtensions; | |
using FluentNHibernate.Conventions.Instances; |
This file contains 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
[TestFixture] | |
public class MyTaskTests | |
{ | |
private MyTask sut; | |
private IRepository<Help> helpRepository; | |
private IAnotherRepository anotherRepository; | |
[Test] | |
public void My_Sample_Test() |
This file contains 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 class ServiceLocatorInitializer | |
{ | |
#region Public Methods | |
public static void Init() | |
{ | |
IWindsorContainer container = new WindsorContainer(); | |
container.AddComponent("validator", typeof(IValidator), typeof(ValidatorStub)); | |
container.AddComponent("validatorManager", typeof(IValidationManager), typeof(ValidationManagerStub)); | |
ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container)); |