コード例 #1
0
 public void Initialize()
 {
     service = new Mock <RosterService>();
     mapper  = MappingConfig.Mapper.CreateMapper();
     facade  = new TeammateSearchFacade(service.Object, mapper);
 }
コード例 #2
0
 /// <summary>
 /// Constructor for dependency injection
 /// </summary>
 /// <param name="searchFacade">Facade encapsulating people search activities within the domain services</param>
 public TeamController(TeammateSearchFacade searchFacade)
 {
     this.searchFacade = searchFacade;
 }