public async Task GetAttachment_AsViewer_ShouldGetAttachment() { // Arrange var invitationAttachments = await InvitationsControllerTestsHelper.GetAttachmentsAsync( UserType.Viewer, TestFactory.PlantWithAccess, InitialMdpInvitationId); Assert.AreNotEqual(invitationAttachments.Count, 0); // Act var attachmentDto = await InvitationsControllerTestsHelper.GetAttachmentAsync( UserType.Viewer, TestFactory.PlantWithAccess, InitialMdpInvitationId, invitationAttachments.First().Id); // Assert Assert.AreEqual(invitationAttachments.First().Id, attachmentDto.Id); }