예제 #1
0
        public async Task GetProfileAsync()
        {
            // Act
            PlayerProfileDto result = await _playersAppService.GetProfileAsync(Guid.Parse("85ea0ccf-0fad-4c6f-b660-23e6004a777d"));

            // Assert
            result.ShouldNotBeNull();
            result.Id.ShouldBe(Guid.Parse("85ea0ccf-0fad-4c6f-b660-23e6004a777d"));
            result.FirstName.ShouldBe("John");
            result.LastName.ShouldBe("Doe");
            result.Club.Id.ShouldBe(Guid.Parse("d772238a-9871-47d7-84d5-c45083799954"));
            result.Club.Name.ShouldBe("Snooker Club 1");
        }
예제 #2
0
 public virtual Task <PlayerProfileDto> GetProfileAsync(Guid id)
 {
     return(_playersAppService.GetProfileAsync(id));
 }