コード例 #1
0
        public async Task UpdateAsync_ShouldUpdateGig()
        {
            var gig = await WithUnitOfWorkAsync <Gig>(() => _gigRepository.FirstOrDefaultAsync());

            var input = new CreateUpdateGigDto()
            {
                Title       = "newUpdated",
                Description = "this is Some new Description here buddy"
            };

            var result = await _gigAppService.UpdateAsync(gig.Id, input);

            result.ShouldNotBeNull();
            result.Id.ShouldBe(gig.Id);
            result.Title.ShouldBe(input.Title);
            result.Description.ShouldBe(input.Description);
        }