Esempio n. 1
0
        public void Create_WhenConsentDeniedEvent_WillReturnConsentDeniedAdapter()
        {
            // Arrange
            var evt = new ConsentDeniedEvent(string.Empty, string.Empty, new string[] { });

            var sut = new AdapterFactory();

            // Act
            var adapter = sut.Create(evt);

            // Assert
            Assert.IsType <ConsentDeniedEventAdapter>(adapter);
        }
 public ConsentDeniedEventAdapter(ConsentDeniedEvent evt)
 {
     this.evt = evt ?? throw new ArgumentNullException(nameof(evt));
 }