コード例 #1
0
        public void ValidateDestination_SupportedDestinationState_WhenDestinationSupported()
        {
            //Arrange
            var mockLogger = new Mock <ILogger <ClientAValidationService> >();

            var sut = new ClientAValidationService(mockLogger.Object);

            //Act
            var result = sut.ValidateDestination("DestinationA");

            //Assert
            Assert.Equal(ValidationState.Success, result);
        }
コード例 #2
0
        public void ValidateDestination_ReturnsUnsupportedDestinationState_WhenDestinationUnsupported()
        {
            //Arrange
            var mockLogger = new Mock <ILogger <ClientAValidationService> >();

            var sut         = new ClientAValidationService(mockLogger.Object);
            var destination = Guid.NewGuid().ToString();

            //Act
            var result = sut.ValidateDestination(destination);

            //Assert
            Assert.Equal(ValidationState.UnsupportedDestination, result);
        }