public async Task GetGoodsReceivedNoteAsync_Returns_Null()
        {
            //Arrange
            var id      = 10001;
            var service = new GoodsReceivedNoteService(_myRestaurantContext);

            //Act
            var result = await service.GetGoodsReceivedNoteAsync(d => d.Id == id);

            //Assert
            result.Should().BeNull();
        }
        public async Task GetGoodsReceivedNoteAsync_Returns_GoodsReceivedNote()
        {
            //Arrange
            var id      = 1;
            var service = new GoodsReceivedNoteService(_myRestaurantContext);

            //Act
            var result = await service.GetGoodsReceivedNoteAsync(d => d.Id == id);

            //Assert
            result.Should().BeAssignableTo <GoodsReceivedNote>();
            result !.Id.Should().Be(id);
            result.InvoiceNumber.Should().Be("INV_20210132_01");
            result.PaymentType.CreditPeriod.Should().Be(0);
        }