private Notification CreateNotificationBase()
        {
            var notifierInfo = new NotifierInfo
            {
                Name    = Notifier.Name,
                Version = Notifier.Version,
                Url     = Notifier.Url.AbsoluteUri
            };

            var notification = new Notification
            {
                ApiKey   = Config.ApiKey,
                Notifier = notifierInfo,
                Events   = new List <EventInfo>()
            };

            return(notification);
        }
Exemple #2
0
        public void Url_ShouldReturnGithubRepoUrl()
        {
            var notifierInfo = new NotifierInfo();

            Assert.True(notifierInfo.Url.Equals("https://github.com/airbrake/sharpbrake"));
        }
Exemple #3
0
        public void Version_ShouldReturnThreeZeroZero()
        {
            var notifierInfo = new NotifierInfo();

            Assert.True(notifierInfo.Version.Equals("3.0.2"));
        }
Exemple #4
0
        public void Name_ShouldReturnSharpbrake()
        {
            var notifierInfo = new NotifierInfo();

            Assert.True(notifierInfo.Name.Equals("sharpbrake"));
        }
Exemple #5
0
        public void Version_ShouldReturnVersionSpecifiedInCsproj()
        {
            var notifierInfo = new NotifierInfo();

            Assert.Equal("5.1.0", notifierInfo.Version);
        }
Exemple #6
0
        public void Name_ShouldReturnSharpbrake()
        {
            var notifierInfo = new NotifierInfo();

            Assert.Equal("sharpbrake", notifierInfo.Name);
        }
        public void Version_ShouldReturnAssemblyVersion()
        {
            var notifierInfo = new NotifierInfo();

            Assert.True(notifierInfo.Version.Equals("3.2.1"));
        }