Пример #1
0
        private static void PopulateMockRooms(MeetyChatDataMock data)
        {
            data.PublicRooms.Add(new PublicRoom()
            {
                Id = 1,
                Name = "room 1",
                Members = new List<ApplicationUser>() { GetMockedUser() },
                Messages = data.Messages.All().ToList()
            });

            data.PublicRooms.Add(new PublicRoom()
            {
                Id = 2,
                Name = "room 2",
                Members = new List<ApplicationUser>() { GetMockedUser() },
                Messages = data.Messages.All().ToList()
            });

            data.PublicRooms.Add(new PublicRoom()
            {
                Id = 3,
                Name = "room 3",
                Members = new List<ApplicationUser>() { GetMockedUser() },
                Messages = data.Messages.All().ToList()
            });
        }
Пример #2
0
 private static void PopulateMockUsers(MeetyChatDataMock data)
 {
     data.Users.Add(GetMockedUser());
 }
Пример #3
0
        private static void PopulateMockMessages(MeetyChatDataMock data)
        {
            data.Messages.Add(new Message()
            {
                Content = "Message 1",
                Date = new DateTime(2010, 5, 5),
                Id = 1,
                SenderId = MockUserId,
                Sender = GetMockedUser(),
                RoomId = 1
            });

            data.Messages.Add(new Message()
            {
                Content = "Message 2",
                Date = new DateTime(2014, 4, 9),
                Id = 2,
                SenderId = MockUserId,
                Sender = GetMockedUser(),
                RoomId = 1
            });

            data.Messages.Add(new Message()
            {
                Content = "Message 3",
                Date = new DateTime(2015, 3, 2),
                Id = 3,
                SenderId = MockUserId,
                Sender = GetMockedUser(),
                RoomId = 1
            });
        }