public VisualStudioProjectFileValidator( INowUtcProvider nowUtcProvider) { this.NowUtcProvider = nowUtcProvider; this.ConstructorEndSetup(); }
public static async Task <DateTime> GetNowAsync(INowUtcProvider nowUtcProvider) { var utcNow = await nowUtcProvider.GetNowUtc(); var now = utcNow.ToLocalTime(); return(now); }
public VisualStudioProjectFileToXElementConverter( INowUtcProvider nowUtcProvider, IVisualStudioProjectFileDeserializationSettings visualStudioProjectFileDeserializationSettings) { this.NowUtcProvider = nowUtcProvider; this.VisualStudioProjectFileDeserializationSettings = visualStudioProjectFileDeserializationSettings; this.ConstrutorEndSetup(); }
public FunctionalVisualStudioProjectFileStreamSerializer( IMessageFormatter messageFormatter, INowUtcProvider nowUtcProvider, IRelativeFilePathsVisualStudioProjectFileStreamSerializer relativeFilePathsVisualStudioProjectFileSerializer, IStringlyTypedPathOperator stringlyTypedPathOperator, IVisualStudioProjectFileDeserializationSettings visualStudioProjectFileDeserializationSettings, IVisualStudioProjectFileSerializerMessagesOutputFilePathProvider visualStudioProjectFileSerializerMessagesOutputFilePathProvider, IVisualStudioProjectFileValidator visualStudioProjectFileValidator) { this.MessageFormatter = messageFormatter; this.NowUtcProvider = nowUtcProvider; this.RelativeFilePathsVisualStudioProjectFileSerializer = relativeFilePathsVisualStudioProjectFileSerializer; this.StringlyTypedPathOperator = stringlyTypedPathOperator; this.VisualStudioProjectFileDeserializationSettings = visualStudioProjectFileDeserializationSettings; this.VisualStudioProjectFileSerializerMessagesOutputFilePathProvider = visualStudioProjectFileSerializerMessagesOutputFilePathProvider; this.VisualStudioProjectFileValidator = visualStudioProjectFileValidator; }
public static async Task <bool> SetEqualAsync <T>(this IEnumerable <T> x, IEnumerable <T> y, IEqualityComparer <T> equalityComparer, INowUtcProvider nowUtcProvider, IMessageSink messageSink) { async Task MessageHandler(string message) { await messageSink.AddErrorMessageAsync(nowUtcProvider, message); } var result = await x.SetEqualAsync(y, equalityComparer, MessageHandler); return(result); }
public static async Task <bool> SequenceEqualAsync <T>(this IEnumerable <T> x, IEnumerable <T> y, IEqualityComparer <T> equalityComparer, INowUtcProvider nowUtcProvider, IMessageSink messageSink, bool stopAtFirstElementDifference = true) { async Task MessageHandler(string message) { await messageSink.AddErrorMessageAsync(nowUtcProvider, message); } var result = await x.SequenceEqualAsync(y, equalityComparer, MessageHandler, stopAtFirstElementDifference); return(result); }
public static Task AddOutputMessageAsync(this IMessageSink messageSink, INowUtcProvider nowUtcProvider, string outputMessage) { return(messageSink.AddMessageAsync(nowUtcProvider, MessageType.Output, outputMessage)); }
public static Task AddErrorMessageAsync(this IMessageSink messageSink, INowUtcProvider nowUtcProvider, string errorMessage) { return(messageSink.AddMessageAsync(nowUtcProvider, MessageType.Error, errorMessage)); }
public static async Task AddMessageAsync(this IMessageSink messageSink, INowUtcProvider nowUtcProvider, MessageType messageType, string message) { var timestampUtc = await nowUtcProvider.GetNowUtcAsync(); await messageSink.AddMessageAsync(timestampUtc, messageType, message); }
public RelativePathsXDocumentVisualStudioProjectFileStreamSerializer( INowUtcProvider nowUtcProvider) { this.NowUtcProvider = nowUtcProvider; }
public VisualStudioProjectFileValueEqualityComparer(INowUtcProvider nowUtcProvider) { this.NowUtcProvider = nowUtcProvider; }