Exemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            InitializeSignalR();

            _username = Users.GetUserName(_userProfiles);

            _profilePicturePath = ProfilePictures.GetPicturePath();

            ProfileInformationHeader.Children.Add(new ProfileHeader(_username, _profilePicturePath));
        }
Exemplo n.º 2
0
        public void GetUserPictureTiny()
        {
            var user = new User {
                Account = "jdoe"
            };
            var picture = new ProfilePicture {
                ContentType = "image/png", ImageTiny = new byte[0], User = user
            };

            ProfilePictures.Add(picture);

            var result = Repository.Object.GetUserPictureTiny("jdoe");

            Assert.IsNotNull(result);
            Assert.AreEqual(picture.ContentType, result.ContentType);
            Assert.AreEqual(picture.ImageTiny, result.Data);

            DataContext.VerifyGet(x => x.ProfilePictures, Times.Once());
        }
Exemplo n.º 3
0
 private void Awake()
 {
     Instance = this;
 }