public void CallTest()
        {
            //Arrange
            var domainStatUserRegistration1 = new DomainStatUserRegistration()
            {
                ProductName = ProductName.Player
            };
            var domainStatUserRegistration2 = new DomainStatUserRegistration()
            {
                ProductName = "ProductName"
            };
            var domainStatUserRegistration3 = new DomainStatUserRegistration();

            var domainReport = new DomainReport();

            var statUserRegistrationFilter = new Mock <IStatUserRegistrationFilter>();

            var playerRegistrationsFilter = new PlayerRegistrationsFilter();

            playerRegistrationsFilter.Set(statUserRegistrationFilter.Object);

            //Act
            playerRegistrationsFilter.Call(domainStatUserRegistration1, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration2, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration3, domainReport);

            //Assert
            Assert.AreEqual(1, domainReport.PlayerRegistrations);
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration1, domainReport), Times.Once());
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration2, domainReport), Times.Once());
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration3, domainReport), Times.Once());
        }
        public void CallTest()
        {
            //Arrange
            var domainStatUserRegistration1 = new DomainStatUserRegistration() { ProductName = ProductName.Player };
            var domainStatUserRegistration2 = new DomainStatUserRegistration() { ProductName = "ProductName" };
            var domainStatUserRegistration3 = new DomainStatUserRegistration();

            var domainReport = new DomainReport();

            var statUserRegistrationFilter = new Mock<IStatUserRegistrationFilter>();

            var playerRegistrationsFilter = new PlayerRegistrationsFilter();
            playerRegistrationsFilter.Set(statUserRegistrationFilter.Object);

            //Act
            playerRegistrationsFilter.Call(domainStatUserRegistration1, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration2, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration3, domainReport);

            //Assert
            Assert.AreEqual(1, domainReport.PlayerRegistrations);
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration1, domainReport), Times.Once());
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration2, domainReport), Times.Once());
            statUserRegistrationFilter.Verify(m => m.Call(domainStatUserRegistration3, domainReport), Times.Once());
        }
        public void CallWhenNotSetFelterTest()
        {
            //Arrange
            var domainStatUserRegistration = new DomainStatUserRegistration() { ProductName = ProductName.Player };
            var domainReport = new DomainReport();

            var playerRegistrationsFilter = new PlayerRegistrationsFilter();

            //Act
            playerRegistrationsFilter.Call(domainStatUserRegistration, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration, domainReport);

            //Assert
            Assert.AreEqual(2, domainReport.PlayerRegistrations);
        }
        public void CallWhenNotSetFelterTest()
        {
            //Arrange
            var domainStatUserRegistration = new DomainStatUserRegistration()
            {
                ProductName = ProductName.Player
            };
            var domainReport = new DomainReport();

            var playerRegistrationsFilter = new PlayerRegistrationsFilter();

            //Act
            playerRegistrationsFilter.Call(domainStatUserRegistration, domainReport);
            playerRegistrationsFilter.Call(domainStatUserRegistration, domainReport);

            //Assert
            Assert.AreEqual(2, domainReport.PlayerRegistrations);
        }