Example #1
0
        public void ReturnFileResourceResultWithResource()
        {
            var contextMock = new Mock<IResourceContext>();

            var resource = new ClientResource();

            var result = resource.Execute(contextMock.Object);

            Assert.NotNull(result);
        }
Example #2
0
 public void ReturnOneParameterKeys()
 {
     var resource = new ClientResource();
     Assert.Equal(1, resource.Parameters.Count());
 }
Example #3
0
        public void ThrowExceptionWithNullParameters()
        {
            var resource = new ClientResource();

            Assert.Throws<ArgumentNullException>(() => resource.Execute(null));
        }
Example #4
0
 public void ProvideProperName()
 {
     var resource = new ClientResource();
     Assert.Equal("glimpse_client", resource.Name);
 }