Exemplo n.º 1
0
        public void SendTestRelease()
        {
            var configuration = new OpbeatConfiguration
            {
                AccessToken    = "0d85cde89fadf8d18c057dd9572b6a2579aaa85e",
                ApplicationId  = "554e269e6f",
                OrganizationId = "42173c5126aa4fdf8acdf368c8555f7c"
            };

            var client = new OpbeatClient(configuration);

            var release = new Release(Sha1Generator.RandomString());

            var response = client.Send(release);

            Assert.Equal(ServiceResponse.Success, response);
        }
Exemplo n.º 2
0
        public void SendTestError()
        {
            var configuration = new OpbeatConfiguration
            {
                AccessToken    = "0d85cde89fadf8d18c057dd9572b6a2579aaa85e",
                ApplicationId  = "554e269e6f",
                OrganizationId = "42173c5126aa4fdf8acdf368c8555f7c"
            };

            var client = new OpbeatClient(configuration);

            var error = new Error("Input 42");

            var response = client.Send(error);

            Assert.Equal(ServiceResponse.Success, response);
        }