public TokenService(ILocalTokenService localTokenService, IHttpService httpService) { this.localTokenService = localTokenService ?? throw new ArgumentNullException(nameof(localTokenService)); this.httpService = httpService ?? throw new ArgumentNullException(nameof(httpService)); }
public LocalTokenServiceTest(ILogger logger, ILocalTokenService localTokenService, ITokenService tokenService, ILocalAccountService localAccountService) { _logger = logger; _localTokenService = localTokenService; _tokenService = tokenService; _localAccountService = localAccountService; }
public void CheckConstructorWithParameters_CheckNullableLocalTokenService_ShouldThrowException() { // Arrange ILocalTokenService localTokenService = null; // Assert Assert.Throws <ArgumentNullException>(() => new TokenService(localTokenService, httpServiceMock.Object)); }
public void CheckConstructorWithParameters_CheckNullableLocalTokenService_ShouldThrowException() { // Arrange ILocalTokenService localTokenService = null; // Assert Assert.Throws <ArgumentNullException>( () => new TicketsViewModel(null, localTokenService, dialogServiceMock.Object, ticketsServiceMock.Object, tokenServiceMock.Object)); }
public void CheckConstructorWithParameters_CheckNullableLocalTokenService_ShouldThrowException() { // Arrange ILocalTokenService localTokenService = null; // Assert Assert.Throws <ArgumentNullException>(() => new ConfirmEmailViewModel(emailActivationServiceMock.Object, null, localTokenService, dialogServiceMock.Object, tokenServiceMock.Object, userServiceMock.Object)); }