예제 #1
0
        public async void UserCreatedEventPublished()
        {
            // Arrange
            var userProfile = new UserCreateDTO
            {
                Email      = "*****@*****.**",
                FirstName  = "Test",
                SecondName = "User 3"
            };

            // Act
            await userProfileManager.CreateAsync(userProfile);

            // Assert
            this.eventHubMoq.Verify(e => e.PublishUserCreatedEventAsync(It.IsAny <long>(), userProfile.Email), Times.Once);
        }