public void UpdateConsignmentTest()
 {
     this.testConsignment = this.fixture.Create<Consignment>();
     this.testConsignment.Id = 1;
     var mapper = new ConsignmentMapper();
     this.consignmentFacade.UpdateConsignment(mapper.Map(this.testConsignment));
     var result = this.consignmentFacade.GetConsignmentById(this.testConsignment.Id);
     Assert.AreEqual(this.testConsignment.Id, result.Id);
     Assert.AreEqual(this.testConsignment.ArrivalDate, result.ArrivalDate);
     Assert.AreEqual(this.testConsignment.WriteOffDate, result.WriteOffDate);
 }
 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);
 }