예제 #1
0
 public TeamService(ILogger logger, ILogEventBuilder eventBuilder)
 {
     _teamRepository = new TeamRepository();
     _rankRepository = new RankRepository();
     _userTeamRepository = new UserTeamRepository();
     _userRepository = new UserRepository();
     _publisher = new RabbitMqPublisher();
     _userRankRepository = new UserRankRepository();
     _logger = logger;
     _eventBuilder = eventBuilder;
 }
예제 #2
0
파일: UnitTest1.cs 프로젝트: loonison101/PB
        public void CreateTeam()
        {
            var team = new Team() {
                Name = "Delta Ops",
                Id = Guid.Empty
            };

            var team2 = new Team() {
                Name = "Deaf Team",
                Id = Guid.NewGuid()
            };

            var repo = new TeamRepository();

            repo.Create(new List<Team>() { team, team2});
        }