public async Task ShouldUpdateSecurityUser()
        {
            var usertId      = Guid.NewGuid();
            var securityUser = new SecurityUser();

            var expected = new UserSettingsDTO();

            var userSettingsDTO = new UserSettingsDTO();

            _mock.Mock <ISecurityUserProvider>()
            .Setup(provider => provider.GetByUserIdAsync(usertId))
            .ReturnsAsync(securityUser);

            _mock.Mock <IMapper>()
            .Setup(mapper => mapper.Map(userSettingsDTO, securityUser))
            .Returns(securityUser);

            _mock.Mock <IMapper>()
            .Setup(mapper => mapper.Map <UserSettingsDTO>(securityUser))
            .Returns(expected);

            var actual = await _service.UpdateAsync(userSettingsDTO, usertId);

            _mock.Mock <IInventContext>()
            .Verify(context => context.Update(securityUser));

            _mock.Mock <IInventContext>()
            .Verify(context => context.SaveChangesAsync(default(CancellationToken)));

            ContentAssert.AreEqual(expected, actual);
        }