Beispiel #1
0
 public void SetUpContext()
 {
     this.WandService = Substitute.For <IWandService>();
     this.WandConsignmentsRepository = Substitute.For <IQueryRepository <WandConsignment> >();
     this.WandItemsRepository        = Substitute.For <IQueryRepository <WandItem> >();
     this.Sut = new WandFacadeService(
         this.WandConsignmentsRepository,
         this.WandItemsRepository,
         this.WandService);
 }
        public WandController()
        {
            WandRepository repository = new WandRepository();

            _service = new WandService(repository);
        }