public void TestInsertSingleLog() { Logger.DeleteAll(CollectionName); TestLoggable test = new TestLoggable(); Logger.InsertLog(test); }
public void ShouldSubscribe() { TestLoggable loggable = new TestLoggable(); TestLogger logger = new TestLogger(); Expect.IsFalse(logger.AddCalled); loggable.Subscribe(logger); loggable.Fire(); Expect.IsTrue(logger.AddCalled); }