public void Get_InputExistProductId_ReturnProduct() { // Arrange var context = SqlLiteInMemoryContext(); EFUnitOfWork uow = new EFUnitOfWork(context); Catalog.DAL.Repositories.Interfaces.ProductRepository repository = uow.Streets; Product expectedProduct = new Product() { //ProductId = 1, CatalogID = 5, Name = "test", Description = "testD", Catalog = new Catalog.DAL.Entities.Catalog() { CatalogID = 5 } }; context.Products.Add(expectedProduct); context.SaveChanges(); //Act var factProduct = repository.Get(expectedProduct.ProductID); // Assert Assert.Equal(expectedProduct, factProduct); }