protected override void Before_each_spec()
        {
            _writer = Mocks.StrictMock<TeamCityLogWriter>();
            _messageProvider = new TeamCityMessageProvider(_writer, Mocks.StrictMock<Task>());

            Mocks.BackToRecord(_writer);
        }
		public TeamCityMessageProvider(TeamCityLogWriter writer, Task taskToUseForLogging)
		{
			Ensure.ArgumentIsNotNull(writer, "writer");
			Ensure.ArgumentIsNotNull(taskToUseForLogging, "taskToUseForLogging");

			_writer = writer;
			_writer.TaskToUseForLogging = taskToUseForLogging;
		}