public void TestDeleteAll()
        {
            // Arrange
            const int            EXPECTED    = 0;
            const int            START_COUNT = 5;
            IPartyInvitesR       vRepository = new PartyInvitesR();
            List <GuestResponse> vList       = vRepository.GetAll();

            foreach (GuestResponse vRec in vList)
            {
                vRepository.Delete(vRec.Id);
            }
            int           vInitialCount = vRepository.Count();    // Should be zero
            GuestResponse vNewRec       = MakeNewRecord();

            vRepository.Add(vNewRec);
            vNewRec = MakeNewRecord();
            vRepository.Add(vNewRec);
            vNewRec = MakeNewRecord();
            vRepository.Add(vNewRec);
            vNewRec = MakeNewRecord();
            vRepository.Add(vNewRec);
            vNewRec = MakeNewRecord();
            vRepository.Add(vNewRec);
            int vStartCount = vRepository.Count();

            // Act
            vRepository.DeleteAll();

            // Assert
            vInitialCount.Should().Be(0);
            vStartCount.Should().Be(START_COUNT);
            vRepository.Count().Should().Be(EXPECTED);
        }
        public void TestAdd()
        {
            // Arrange
            int            vExpected   = 1;
            IPartyInvitesR vRepository = new PartyInvitesR();
            int            vCount      = vRepository.Count();
            GuestResponse  vRecord     = MakeNewRecord();

            // Act
            vRepository.Add(vRecord);
            int vResult = vRepository.Count();

            // Assert
            vResult.Should().Be(vExpected);
        }
        public void TestCount()
        {
            // Arrange
            const int EXPECTED = 1;

            PrepareStorage();
            IPartyInvitesR vRepository   = new PartyInvitesR();
            int            vInitialCount = vRepository.Count();

            vRepository.Add(MakeNewRecord());

            // Act
            int vResult = vRepository.Count();

            // Assert
            vInitialCount.Should().Be(0, "Initial count. Repository was cleared");
            vResult.Should().Be(EXPECTED);
        }
        public void TestDelete()
        {
            // Arrange
            const int EXPECTED = 0;

            PrepareStorage();
            GuestResponse  vNewRec       = MakeNewRecord();
            IPartyInvitesR vRepository   = new PartyInvitesR();
            int            vInitialCount = vRepository.Count();

            vRepository.Add(vNewRec);
            int vStartCount = vRepository.Count();

            // Act
            vRepository.Delete(vNewRec.Id);
            int vResult = vRepository.Count();

            // Assert
            vInitialCount.Should().Be(0);
            vStartCount.Should().Be(1);
            vResult.Should().Be(EXPECTED);
        }