public void RateCSVDataFeed_can_dettach_the_SmartTravel_with_Id_specified(int id)
        {
            // Arrange
            var notifier          = MockRepository.GenerateMock <INotifier>();
            var csvDataFeed       = new RateCSVDataFeed(notifier);
            var affiliateDetached = new EasyBooking {
                Id = id
            };
            var affiliates = new List <IAffiliate>
            {
                new EasyBooking {
                    Id = 7
                },
                new EasyBooking {
                    Id = 38
                },
                new EasyBooking {
                    Id = 102
                }
            };

            csvDataFeed.Affiliates = affiliates;

            // Act
            csvDataFeed.Detach(affiliateDetached);
            var affiliatesActual = csvDataFeed.Affiliates;

            // Assert
            affiliatesActual.Should().OnlyContain(a => a.Id != affiliateDetached.Id);
        }
        public void RateCSVDataFeed_can_attach_a_SmartTravel_with_Id_and_Name_specified(int id, string name)
        {
            // Arrange
            var notifier          = MockRepository.GenerateMock <INotifier>();
            var affiliateAttached = new EasyBooking {
                Id = id, Name = name
            };
            var csvDataFeed = new RateCSVDataFeed(notifier);

            // Act
            csvDataFeed.Attach(affiliateAttached);
            var affiliatesActual = csvDataFeed.Affiliates;

            // Assert
            affiliatesActual.Should().ContainSingle(a => a.Id == affiliateAttached.Id && a.Name == name);
        }