public void CanUseGenericDataProviderForOrder() { var genericOrderProvider = new GenericDataProvider<Order>(_session); var specificOrderProvider = new OrderDataProvider(_session); int orderId = 20; var orderListByGeneric = genericOrderProvider.GetById(orderId); var orderListBySpecific = specificOrderProvider.GetOrderById(orderId); Assert.That(orderListBySpecific, Is.EqualTo(orderListByGeneric)); }
public void CanUseGenericDataProviderForProduct() { var genericProductProvider = new GenericDataProvider<Product>(_session); var specificProductProvider = new ProductDataProvider(_session); int productId = 20; var productListByGeneric = genericProductProvider.GetById(productId); var productListBySpecific = specificProductProvider.GetProductById(productId); Assert.That(productListBySpecific, Is.EqualTo(productListByGeneric)); }
public void CanUseGenericDataProviderForCustomer() { var genericCustomerProvider = new GenericDataProvider<Customer>(_session); var specificCustomerProvider = new CustomerDataProvider(_session); int customerId = 9; var customerListByGeneric = genericCustomerProvider.GetById(customerId); var customerListBySpecific = specificCustomerProvider.GetCustomerById(customerId); Assert.That(customerListBySpecific, Is.EqualTo(customerListByGeneric)); }