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); }
public void Url_ShouldReturnGithubRepoUrl() { var notifierInfo = new NotifierInfo(); Assert.True(notifierInfo.Url.Equals("https://github.com/airbrake/sharpbrake")); }
public void Version_ShouldReturnThreeZeroZero() { var notifierInfo = new NotifierInfo(); Assert.True(notifierInfo.Version.Equals("3.0.2")); }
public void Name_ShouldReturnSharpbrake() { var notifierInfo = new NotifierInfo(); Assert.True(notifierInfo.Name.Equals("sharpbrake")); }
public void Version_ShouldReturnVersionSpecifiedInCsproj() { var notifierInfo = new NotifierInfo(); Assert.Equal("5.1.0", notifierInfo.Version); }
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")); }