Beispiel #1
0
        public async Task TestAvatrnameIsOk()
        {
            var avatarKit = new AvatarKitViewModel(new AdorableService(new ApiService(), new StorageService()), "Nick");

            await avatarKit.Load();

            Assert.AreEqual(avatarKit.DownloadState, DownloadState.Completed);
        }
Beispiel #2
0
        public async Task TestAvatrnameNull()
        {
            var avatarKit = new AvatarKitViewModel(new AdorableService(new ApiService(), new StorageService()), null);

            await avatarKit.Load();

            Assert.AreEqual(avatarKit.DownloadState, DownloadState.Error);
        }