public ReadersFacadeTests()
 {
     this.fixture = new Fixture();
     fixture.Behaviors.Remove(new ThrowingRecursionBehavior());
     fixture.Behaviors.Add(new OmitOnRecursionBehavior());
     this.fixture.Customizations.Add(new TypeRelay(typeof(Item), typeof(Book)));
     this.testReader = this.fixture.Create<Reader>();
     var uow = Initializer.GetLibraryUow();
     uow.Readers.Add(this.testReader);
     this.readersFacade = new ReaderFacade(uow);
 }
        public ReadersFacadeTests()
        {
            this.fixture = new Fixture();
            fixture.Behaviors.Remove(new ThrowingRecursionBehavior());
            fixture.Behaviors.Add(new OmitOnRecursionBehavior());
            this.fixture.Customizations.Add(new TypeRelay(typeof(Item), typeof(Book)));
            this.testReader = this.fixture.Create <Reader>();
            var uow = Initializer.GetLibraryUow();

            uow.Readers.Add(this.testReader);
            this.readersFacade = new ReaderFacade(uow);
        }
Beispiel #3
0
 public ReaderManager(ILibraryUow uow, IReaderFacade readerFacade, IUsersFacade usersFacade)
 {
     this.uow          = uow;
     this.readerFacade = readerFacade;
     this.usersFacade  = usersFacade;
 }
 public ReaderManager(ILibraryUow uow, IReaderFacade readerFacade, IUsersFacade usersFacade)
 {
     this.uow = uow;
     this.readerFacade = readerFacade;
     this.usersFacade = usersFacade;
 }