public void ValidateType_ReturnsSuccessState_WhenTypeSupported() { //Arrange var mockLogger = new Mock <ILogger <ClientAValidationService> >(); var sut = new ClientAValidationService(mockLogger.Object); //Act var result = sut.ValidateType(OrderType.Market); //Assert Assert.Equal(ValidationState.Success, result); }
public void ValidateType_ReturnsUnsupportedTypeState_WhenTypeUnsupported() { //Arrange var mockLogger = new Mock <ILogger <ClientAValidationService> >(); var sut = new ClientAValidationService(mockLogger.Object); var orderType = It.Is <OrderType>(x => x != OrderType.Market); //Act var result = sut.ValidateType(orderType); //Assert Assert.Equal(ValidationState.UnsupportedType, result); }