public ConsignmentFacadeTests() { 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.testConsignment = this.fixture.Create<Consignment>(); var uow = Initializer.GetLibraryUow(); uow.Consignments.Add(this.testConsignment); this.consignmentFacade = new ConsignmentFacade(uow); }
public ConsignmentFacadeTests() { 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.testConsignment = this.fixture.Create <Consignment>(); var uow = Initializer.GetLibraryUow(); uow.Consignments.Add(this.testConsignment); this.consignmentFacade = new ConsignmentFacade(uow); }
public ConsignmentManager(IConsignmentFacade consignmentFacade) { this.consignmentFacade = consignmentFacade; }
public ConsignmentManager(IConsignmentFacade consignmentFacade) { this.consignmentFacade = consignmentFacade; }