public void ThenIHaveALogInTheSystemMatchingTheFollowing(Table table) { var logModel = table.CreateInstance <LogModel>(); var logs = SeDatabase.GetLogs(); Assert.IsTrue(logs.Count(a => a.Level == logModel.Level && a.Message.Contains(logModel.Message)) == 1, "Log does not match message"); }
public void ThenIHaveTheFollowingLogsInTheSystem(Table table) { var logs = SeDatabase.GetLogs(); table.CompareToSet(logs); }