public void TestName() { var unitOfWork = new UnitOfWork(new DbContextFactory()); UserRepository userRepository = new UserRepository(unitOfWork); Console.WriteLine(unitOfWork.Context.Database.Connection.ConnectionString); HotelRepository repository = new HotelRepository(unitOfWork); var name = "COCO BEACH RESORT 3*"; // var specification = new SimpleSpecification<Hotel>(name); var specification = new MultiSpecification <Hotel>(name); specification.Property = "Name"; var hotels = repository.Find(specification); foreach (var hotel in hotels) { Console.WriteLine("{0} - {1}", hotel.Name, hotel.Id); } Assert.That(2, Is.EqualTo(2)); }