public ApplicationInterfaceBase(IStorageRepository storage = null, ISerializer serializer = null, IConfigurationOptions configurationOptions = null) { StoreManagerApplication.Initialize(storage, serializer, configurationOptions); _typeNames = new Dictionary <Type, string> { { typeof(Customer), "customer" }, { typeof(Store), "store" }, { typeof(Order), "order" }, { typeof(Address), "address" }, { typeof(OperatingLocation), "operating location" }, { typeof(Product), "product" } }; }
// [Fact] public void Test() { } // [Theory] public void Test(int param) { } public StoreManagerTests() { // Get the connection string string filepath = @"C:/Users/Khypr/Desktop/store_manager_configuration.json"; string json = File.ReadAllText(filepath); string connString = JsonSerializer.Deserialize <string>(json); // Set up storage IStorageRepository storage = new DatabaseStorageRepository(); // Set up the configuration options IConfigurationOptions configurationOptions = new DatabaseConfigurationOptions(new FileLogger("C:/Users/Khypr/Desktop/StoreManager/store_manager.tests.log"), connString); // Initialize the App StoreManagerApplication.Initialize(storage, null, configurationOptions); }