public ProductServiceTest(SmallCrmFixture fixture) { context_ = fixture.DbContext; customers_ = fixture.Container.Resolve <ICustomerService>(); products_ = fixture.Container.Resolve <IProductService>(); orders_ = fixture.Container.Resolve <IOrderService>(); }
public ProductService(SmallCrmDbContext context) { context_ = context ?? throw new ArgumentNullException(nameof(context)); }
public OrderService(ICustomerService customers, SmallCrmDbContext context) { context_ = context; customers_ = customers; }