Пример #1
0
        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);
        }
Пример #2
0
            public Guid Log(string message, LogLevel logLevel = LogLevel.Trace)
            {
                DateTimeOffset LogDate = DateTimeOffset.UtcNow;

                File.WriteAllText(logFilePath, $"{LogDate}|{logLevel}|{message}");
                return(idProvider.NextId());
            }