public void GetUserByValidUsernameTest()
        {
            // act
            _userRepositoryMock.Setup(x => x.Get(null, "test")).Returns(new User());
            var userManager = new UserManager(_userRepositoryMock.Object);

            // actual
            var actual = userManager.GetUserByUsername("test", true);

            // assert
            Assert.IsNotNull(actual);
        }
        public void GetUserByInvalidUsernameTest()
        {
            // act
            _userRepositoryMock.Setup(x => x.Get(null, null)).Returns((User) null);
            var userManager = new UserManager(_userRepositoryMock.Object);

            // actual
            var actual = userManager.GetUserByUsername("test", true);

            // assert
            // never reached
        }