Esempio n. 1
0
        public PresentTeamSummaries Teams()
        {
            var bob = new User("Bob");

            bob.AddRole(UserRoles.Admin);
            _context.GateKeeper.SetLoggedIn(bob);
            _context.TeamGateway.Save(new Team {
                Name = "Store"
            });

            var _useCase     = new PresentTeamSummariesUseCase(_context);
            var presentation = _useCase.PresentTeams();

            if (presentation.Status == MyTeam.UseCases.UseCaseStatus.Unauthorized)
            {
                Unauthorized();
            }

            return(presentation);
        }
Esempio n. 2
0
 public void WhenIPresentTeams()
 {
     Result = _userCase.PresentTeams();
 }