Example #1
0
        /// <summary>
        /// Initializes the singleton application object.  This is the first line of authored code
        /// executed, and as such is the logical equivalent of main() or WinMain().
        /// </summary>
        public App()
        {
            this.InitializeComponent();
            this.Suspending += OnSuspending;

            DatabaseConfiguration.AddMigrations();
            AutoMapperConfiguration.Configure();
        }
Example #2
0
        public async void TestMethod1()
        {
            DatabaseConfiguration.AddMigrations();
            AutoMapperConfiguration.Configure();

            var productService = new ProductQueryService();
            var products       = await productService.GetAllProductsAsync();

            Assert.Equal(1, 1);
        }