Ejemplo n.º 1
0
 private void ReloadModel(string a)
 {
     Progress.IsIndeterminate = true;
     productId = (int)Application.Current.Properties["product_id"];
     MainTitle = $"Product number {productId}, with name {SoldProduct.Name}";
     SoldProduct.LoadFromAnother(ProductsFunctions.GetSoldProductsView(productId).First());
     Progress.IsIndeterminate = false;
 }
Ejemplo n.º 2
0
        public ProductsFunctionsTests()
        {
            MongoDatabaseContext context = MongoDatabase.GetMongoDatabaseContext();

            _functions = new ProductsFunctions(context);
        }
        public ProductsFunctionsTests(IntegrationFixture fixture)
        {
            MongoDatabaseContext context = fixture.Services.GetRequiredService <MongoDatabaseContext>();

            _functions = new ProductsFunctions(context);
        }