public void TestAlreadyExists() { IProductUpdator productUpdator = MefBase.Resolve <IProductUpdator>(); var product = JsonConvert.DeserializeObject <Product>("{Id: '1'}"); productUpdator.Create(product); }
public void TestInvalidIdException4() { IProductUpdator productUpdator = MefBase.Resolve <IProductUpdator>(); var product = JsonConvert.DeserializeObject <Product>("{Id: '" + Guid.Empty + "'}"); productUpdator.Create(product); }
public void ProductValidation_Id() { IProductUpdator productUpdator = MefBase.Resolve <IProductUpdator>(); Product product = JsonConvert.DeserializeObject <Product>("{ProductCategoryId: 1, Name: \"Tennis Shoes\"}"); productUpdator.Create(product); }
public void TestNullException() { IProductUpdator productUpdator = MefBase.Resolve <IProductUpdator>(); productUpdator.Create(null); }