Exemplo n.º 1
0
        public void TestInitializer()
        {
            serializer = new SerializerImp();
            client     = new RestClientImpl();

            helper = new SingletonPhotoHelper(client, serializer);
        }
Exemplo n.º 2
0
        public void GetAll_ValidatingSingletonCache()
        {
            var helper1 = new SingletonPhotoHelper(client, serializer);
            var output1 = helper1.GetAll();

            var helper2 = new SingletonPhotoHelper(client, serializer);
            var output2 = helper2.GetAll();

            Assert.IsNotNull(output1);
            Assert.IsNotNull(output2);
            Assert.AreSame(output1, output2);
        }