Escali License control 1
|
ProductService Testing Environment Mer...
Public medlemsfunksjoner | |
ProductServiceTest (ITestOutputHelper testOutputHelper) | |
async void | GetAllProducts_IsEmpty () |
Retrieves productlist Passes if productlist is empty Mer... | |
async void | GetAllProducts_NotEmptyAndCorrectObject () |
Inserts product in productlist passes if productlist is not empty and the inserted product equals the product in productlist Mer... | |
async void | GetProductById_ProductNotExisting () |
passes if product does not exist in the productlist Mer... | |
async void | AddProduct_Success () |
passes if product is correctly added to productlist Mer... | |
async void | AddProduct_ProductNameAlreadyExists () |
passes if productname already exist in productlist and throws an InvalidOperationException Mer... | |
async void | UpdateProduct_ProductNotExisting () |
passes if product is not existing in productlist and throws a DbUpdateConcurrencyException Mer... | |
async void | UpdateProduct_SameName () |
async void | UpdateProduct_NewNameSuccess () |
passes if productname is correctly changed in the productlist Mer... | |
Private attributter | |
readonly ITestOutputHelper | _testOutputHelper |
ProductService Testing Environment
Definisjon på linje 15 i filen ProductServiceTest.cs.
Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.ProductServiceTest | ( | ITestOutputHelper | testOutputHelper | ) |
Definisjon på linje 19 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.AddProduct_ProductNameAlreadyExists | ( | ) |
passes if productname already exist in productlist and throws an InvalidOperationException
Definisjon på linje 109 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.AddProduct_Success | ( | ) |
passes if product is correctly added to productlist
Definisjon på linje 89 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.GetAllProducts_IsEmpty | ( | ) |
Retrieves productlist Passes if productlist is empty
Definisjon på linje 29 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.GetAllProducts_NotEmptyAndCorrectObject | ( | ) |
Inserts product in productlist passes if productlist is not empty and the inserted product equals the product in productlist
Definisjon på linje 49 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.GetProductById_ProductNotExisting | ( | ) |
passes if product does not exist in the productlist
Definisjon på linje 70 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.UpdateProduct_NewNameSuccess | ( | ) |
passes if productname is correctly changed in the productlist
Definisjon på linje 179 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.UpdateProduct_ProductNotExisting | ( | ) |
passes if product is not existing in productlist and throws a DbUpdateConcurrencyException
Definisjon på linje 132 i filen ProductServiceTest.cs.
async void Escali.LicenseControl.DataAccess.Tests.Services.ProductServiceTest.UpdateProduct_SameName | ( | ) |
Definisjon på linje 153 i filen ProductServiceTest.cs.
|
private |
Definisjon på linje 17 i filen ProductServiceTest.cs.