Example #1
0
    public async Task Test1()
    {
        // Arrange
        var hotel = new Hotel
        {
            Nombre = "Prueba",
            Id     = 0
        };

        // Act
        await uow.Hotels.Add(hotel);

        await uow.CommitAsync();

        var number = await uow.Hotels.CountAll();

        // Assert
        uow.Should().NotBeNull();
        number.Should().Be(1);
    }