public async Task CreateGame_With_Title_Empty() { //Arrange var entity = new FriendBuilder().WithNameEmpty(); //Act/Assert await Assert.ThrowsAsync <ValidationException>(async () => await _friendDomainService.CreateAsync(entity)); }
public Friend(FriendBuilder builder) { Id = builder.Id; Friend1Id = builder.Friend1Id; Friend2Id = builder.Friend2Id; FirstName = builder.FirstName; LastName = builder.LastName; Email = builder.Email; }
public ReturnGame() { var game = new GameBuilder().Build(); _gameDto = new GameDto(game.Id, game.Name); var friend = new FriendBuilder().Build(); _friendDto = new FriendDto(friend.Id, friend.Name, friend.PhoneNumber); }
public async Task CreateGame_Success() { //Arrange var entity = new FriendBuilder().Build(); //Act var response = await _friendDomainService.CreateAsync(entity); //Assert response.Should().NotBeEmpty(); }
public void AddFriendAndCheckFirstAdded() { var login = new LoginBuilder().Build(); var friend = new FriendBuilder().Build(); login.AddFriend(friend.Name, friend.PhoneNumber); var first = login.Friends.Single(); Assert.Equal(friend.Name, first.Name); Assert.Equal(friend.PhoneNumber, first.PhoneNumber); }
public UpdateFriend() { var friend = new FriendBuilder().Build(); _friendDto = new FriendDto(friend.Id, friend.Name, friend.PhoneNumber); }