public void UploadExcel_ReturnsHttpStatusCode() { _excelReaderExtension.Setup(x => x.GetConfiguration(It.IsAny <ExcelWorksheet>())).Returns( new List <ExcelConfiguration> { new ExcelConfiguration() }); var settingsBusinessLogics = new SettingsBusinessLogics(_excelReaderExtension.Object, _settingsAdapter.Object); var actual = settingsBusinessLogics.UploadExcel("C:/"); Assert.DoesNotThrow(() => settingsBusinessLogics.UploadExcel("c:/")); }
public void SettingsBusinessLogics_Instance() { var assert = new SettingsBusinessLogics(_excelReaderExtension.Object, _settingsAdapter.Object); Assert.IsInstanceOf <SettingsBusinessLogics>(assert); }