Exemplo n.º 1
0
        public async Task ChangeNameAsync()
        {
            var tenant = await _testRepository.FindByNameAsync("test0");

            tenant.ShouldNotBeNull();

            await _testService.ChangeNameAsync(tenant, "test3");

            tenant.Name.ShouldBe("test3");
        }
Exemplo n.º 2
0
        public async Task ChangeNameAsync([NotNull] TestDto dto)
        {
            var entity = await _testService.GetAsync(dto.Id);

            await _testService.ChangeNameAsync(entity, dto.Name);
        }