Example #1
0
        public async Task CanSaveAsync()
        {
            var entity = new Contractor
            {
                Name = "John Doe"
            };

            var res = await _repo.SaveAsync(entity).ConfigureAwait(false);

            res.IsTransient().Should().BeFalse();
            res.Id.Should().BeGreaterThan(0);
        }