mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 12:10:50 +08:00 
			
		
		
		
	netstandard2.0 support
This commit is contained in:
		@@ -126,14 +126,14 @@ namespace Ocelot.UnitTests.Controllers
 | 
			
		||||
        {
 | 
			
		||||
            _node
 | 
			
		||||
                .Setup(x => x.Accept(It.IsAny<UpdateFileConfiguration>()))
 | 
			
		||||
                .Returns(new Rafty.Concensus.OkResponse<UpdateFileConfiguration>(new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
                .ReturnsAsync(new Rafty.Concensus.OkResponse<UpdateFileConfiguration>(new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void GivenTheNodeReturnsError()
 | 
			
		||||
        {
 | 
			
		||||
            _node
 | 
			
		||||
                .Setup(x => x.Accept(It.IsAny<UpdateFileConfiguration>()))
 | 
			
		||||
                .Returns(new Rafty.Concensus.ErrorResponse<UpdateFileConfiguration>("error", new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
                .ReturnsAsync(new Rafty.Concensus.ErrorResponse<UpdateFileConfiguration>("error", new UpdateFileConfiguration(new FileConfiguration())));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        private void GivenTheConfigSetterReturns(Response response)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user