Пример #1
0
        public async Task GetWorkspaceByUserAndIdUserNotExistTest()
        {
            var username    = "******";
            var workspaceId = Guid.NewGuid();

            _userRepo.Setup(repo => repo.UserExists(username)).ReturnsAsync(false);

            var workspace = await _service.GetWorkspaceByUserAndId(username, workspaceId);

            Assert.Null(workspace);
        }