示例#1
0
        public void ShouldInsertProductToSql()
        {
            ITriggerAfterChangeProduct triigTriggerAfterChangeProduct = Mock.Create <ITriggerAfterChangeProduct>();

            Mock.Arrange(() => triigTriggerAfterChangeProduct.SendProduct(Arg.IsAny <ChangeInfo>())).DoNothing();
            IProductRepository productRepository = new ProductRepository();

            productRepository.InsertProduct(100, "trang", 100);
        }
示例#2
0
 public ProductRepository(ITriggerAfterChangeProduct triggerAfterChangeProduct)
 {
 }