Пример #1
0
        public async Task GetUserInfoLoginNull_Test()
        {
            var getUserInfoQuery = new GetUserInfoLoginQuery(efRepository);
            var user             = await getUserInfoQuery.ExecuteAsync("User");

            Assert.Null(user);
        }
Пример #2
0
        public async Task GetUserInfoLogin_Test()
        {
            var getUserInfoQuery = new GetUserInfoLoginQuery(efRepository);
            var user             = await getUserInfoQuery.ExecuteAsync("User1");

            Assert.NotNull(user);
            Assert.Equal("User1", user.UserName);
        }