1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-03 14:03:33 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
Matt Gibson
ee46a6d63b
Create sponsorship offer (#1688) 2021-11-04 08:25:40 -05:00
Matt Gibson
dea366828b Add Attribute to use the Bit Autodata dependency chain
BitAutoDataAttribute is used to mark a Theory as autopopulating
parameters.

Extract common attribute methods to to a helper class. Cannot
inherit a common base, since both require inheriting from different
Xunit base classes to work.
2021-10-30 13:32:15 -04:00
Matt Gibson
b8fdbbcb9f WIP: Organization sponsorship flow 2021-10-30 13:20:35 -04:00
Matt Gibson
0cbeb75b29 Workaround for broken MemberAutoDataAttribute
https://github.com/AutoFixture/AutoFixture/pull/1164 shows that only
the first test case is pulled for this attribute.

This is a workaround that populates the provided parameters, left to
right, using AutoFixture to populate any remaining.
2021-10-30 13:20:35 -04:00
Matt Gibson
d08e9359af Enable testing of ASP.net MVC controllers
Controller properties have all kinds of validations in the background.
In general, we don't user properties on our Controllers, so the easiest
way to allow for Autofixture-based testing of our Controllers is to just
omit setting all properties on them.
2021-10-30 13:20:35 -04:00
Matt Gibson
53b82d7d06 Create common test infrastructure project 2021-10-30 13:19:40 -04:00