public void Initialize()
        {
            Mapper.Reset();
            MappingConfig.Initialize();

            entity = new Book {
                Name = "Book 1", Amount = 1, Price = 1
            };
            entityDto    = Mapper.Map <Core.Dtos.Book>(entity);
            entitiesWait = new List <Book>();
        }
 public void FindByIdTest()
 {
     //Arrange
     entityDto = null;
     entity.Id = 1;
     entitiesWait.Add(entity);
     bookApi = SetController <Book, long>(entity);
     //Act
     entityDto = bookApi.FindById(entity.Id);
     //Assert
     Assert.AreEqual(entityDto.Id, entity.Id);
 }