public InventoryFacadeTests() { this.fixture = new Fixture(); fixture.Behaviors.Remove(new ThrowingRecursionBehavior()); fixture.Behaviors.Add(new OmitOnRecursionBehavior()); this.fixture.Customizations.Add(new TypeRelay(typeof(Item), typeof(Inventory))); this.testInventory = this.fixture.Create<Inventory>(); var uow = Initializer.GetLibraryUow(); uow.Inventories.Add(this.testInventory); this.inventoryFacade = new InventoryFacade(uow); }
public InventoryFacadeTests() { this.fixture = new Fixture(); fixture.Behaviors.Remove(new ThrowingRecursionBehavior()); fixture.Behaviors.Add(new OmitOnRecursionBehavior()); this.fixture.Customizations.Add(new TypeRelay(typeof(Item), typeof(Inventory))); this.testInventory = this.fixture.Create <Inventory>(); var uow = Initializer.GetLibraryUow(); uow.Inventories.Add(this.testInventory); this.inventoryFacade = new InventoryFacade(uow); }
public InventoryManager(IInventoryFacade inventoryFacade) { this.inventoryFacade = inventoryFacade; }