public DeleteProductPartCommandHandlerTest() { productPartRepo = new Mock <IProductPartRepo>(); command = new DeleteProductPartCommand(id, reference); commandHandler = new DeleteProductPartCommandHandler(productPartRepo.Object); productsParts = new ProductsParts(); }
private async Task AddNewProductPart(int partId, int productId) { var productPart = new ProductsParts { PartId = partId, ProductId = productId }; productPartRepo.Add(productPart); await productPartRepo.SaveAllAsync(); }