public void KnownNameTest(string name) { FactoryNoSqlContext.SetLoggerFactory(new Mock <ILoggerFactory>().Object); INoSqlContext opt = FactoryNoSqlContext.CreateNoSqlObject(name); Assert.IsNotNull(opt, "Object must not be null!!!"); }
public void UnknownApiNameTest(string name) { try { INoSqlContext opt = FactoryNoSqlContext.CreateNoSqlObject(name); Assert.True(false, "Exception shoud be throw for unknow name!!!"); } catch (Exception e) { Assert.True(true, e.Message); } }