public void NextId_SouldReturnIncrementedValue_WhenInvoked() { var sut = new IdProvider(); var resultOne = sut.NextId(); var resultTwo = sut.NextId(); Assert.AreEqual(0, resultOne); Assert.AreEqual(1, resultTwo); }
public Guid Log(string message, LogLevel logLevel = LogLevel.Trace) { DateTimeOffset LogDate = DateTimeOffset.UtcNow; File.WriteAllText(logFilePath, $"{LogDate}|{logLevel}|{message}"); return(idProvider.NextId()); }